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>2009-10-24 14:08:10 +0000
committerStijn Buys <ingar@osirion.org>2009-10-24 14:08:10 +0000
commita1e67a1a6cf677a1eb937fc12954a06aa4a41c34 (patch)
tree30a2f7dd8eec87bc132d94d72472179a3fce8ac9 /src/client/joystick.h
parentb9a954049a2bfda2be7368d868b6ac8b73c1bf57 (diff)
make joystick axes configurable
Diffstat (limited to 'src/client/joystick.h')
-rw-r--r--src/client/joystick.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/joystick.h b/src/client/joystick.h
index 9b1925d..4695003 100644
--- a/src/client/joystick.h
+++ b/src/client/joystick.h
@@ -7,6 +7,8 @@
#ifndef __INCLUDED_CLIENT_JOYSTICK_H__
#define __INCLUDED_CLIENT_JOYSTICK_H__
+#include "core/cvar.h"
+
namespace client
{
@@ -22,6 +24,16 @@ public:
static void frame();
static bool is_enabled();
+
+ // configured joystick number
+ static core::Cvar *input_joystick;
+
+ // joystick axes
+ static core::Cvar *input_axisdirection;
+ static core::Cvar *input_axispitch;
+ static core::Cvar *input_axisroll;
+ static core::Cvar *input_axisthrottle;
+
};
}