Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-08-05 00:39:09 +0000
committerStijn Buys <ingar@osirion.org>2008-08-05 00:39:09 +0000
commit7ac353a7895f1ab30d09268968bc85ef9394cf41 (patch)
treedb7ce68c95ccd3a7dcd0d715f9e526359529db12 /src/client/joystick.cc
parentf936aa3a90941a4ed02dde86952d2309c2eede67 (diff)
initial joystick control support
Diffstat (limited to 'src/client/joystick.cc')
-rw-r--r--src/client/joystick.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/joystick.cc b/src/client/joystick.cc
index cf2270f..5f09280 100644
--- a/src/client/joystick.cc
+++ b/src/client/joystick.cc
@@ -56,6 +56,11 @@ void Joystick::shutdown()
SDL_QuitSubSystem(SDL_INIT_JOYSTICK);
}
+bool Joystick::is_enabled()
+{
+ return (current_joystick != 0);
+}
+
void Joystick::frame()
{
if (current_joystick_number != (int) input_joystick->value())