From a1e67a1a6cf677a1eb937fc12954a06aa4a41c34 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 24 Oct 2009 14:08:10 +0000 Subject: make joystick axes configurable --- src/client/joystick.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/client/joystick.h') 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; + }; } -- cgit v1.2.3