Skip to content

Commit

Permalink
Patch for multiple joysticks from const86 <const@mimas.ru>
Browse files Browse the repository at this point in the history
SVN-Revision: 6581
  • Loading branch information
Ingo Ruhnke committed Mar 8, 2010
1 parent 1aad392 commit cfebd35
Show file tree
Hide file tree
Showing 18 changed files with 205 additions and 168 deletions.
6 changes: 6 additions & 0 deletions src/control/controller.cpp
Expand Up @@ -50,6 +50,12 @@ Controller::reset()
}
}

void
Controller::set_control(Control control, bool value)
{
controls[control] = value;
}

bool
Controller::hold(Control control)
{
Expand Down
1 change: 1 addition & 0 deletions src/control/controller.hpp
Expand Up @@ -47,6 +47,7 @@ class Controller
Controller();
virtual ~Controller();

void set_control(Control control, bool value);
/** returns true if the control is pressed down */
bool hold(Control control);
/** returns true if the control has just been pressed down this frame */
Expand Down

0 comments on commit cfebd35

Please sign in to comment.