projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Patch for multiple joysticks from const86 <const@mimas.ru>
[supertux.git]
/
src
/
control
/
controller.cpp
diff --git
a/src/control/controller.cpp
b/src/control/controller.cpp
index
b936ee8
..
93d6536
100644
(file)
--- a/
src/control/controller.cpp
+++ b/
src/control/controller.cpp
@@
-50,6
+50,12
@@
Controller::reset()
}
}
+void
+Controller::set_control(Control control, bool value)
+{
+ controls[control] = value;
+}
+
bool
Controller::hold(Control control)
{