diff options
| author | Stijn Buys <ingar@osirion.org> | 2009-10-24 14:08:10 +0000 | 
|---|---|---|
| committer | Stijn Buys <ingar@osirion.org> | 2009-10-24 14:08:10 +0000 | 
| commit | a1e67a1a6cf677a1eb937fc12954a06aa4a41c34 (patch) | |
| tree | 30a2f7dd8eec87bc132d94d72472179a3fce8ac9 /src/client/joystick.h | |
| parent | b9a954049a2bfda2be7368d868b6ac8b73c1bf57 (diff) | |
make joystick axes configurable
Diffstat (limited to 'src/client/joystick.h')
| -rw-r--r-- | src/client/joystick.h | 12 | 
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; +  };  }  | 
