From 74339c639a7dee831cb54bd056c111a4c37a40e4 Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Sun, 31 Aug 2008 18:42:58 +0000 Subject: BGE patch approved: BGE Multiple Joysticks --- source/gameengine/GameLogic/SCA_JoystickSensor.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/gameengine/GameLogic/SCA_JoystickSensor.h') diff --git a/source/gameengine/GameLogic/SCA_JoystickSensor.h b/source/gameengine/GameLogic/SCA_JoystickSensor.h index 69068da6494..e499d8cd0dc 100644 --- a/source/gameengine/GameLogic/SCA_JoystickSensor.h +++ b/source/gameengine/GameLogic/SCA_JoystickSensor.h @@ -72,6 +72,10 @@ class SCA_JoystickSensor :public SCA_ISensor * The mode to determine axis,button or hat */ short int m_joymode; + /** + * Select which joystick to use + */ + short int m_joyindex; enum KX_JOYSENSORMODE { KX_JOYSENSORMODE_NODEF = 0, @@ -85,6 +89,7 @@ class SCA_JoystickSensor :public SCA_ISensor public: SCA_JoystickSensor(class SCA_JoystickManager* eventmgr, SCA_IObject* gameobj, + short int joyindex, short int joymode, int axis, int axisf,int prec, int button, int buttonf, @@ -97,6 +102,10 @@ public: virtual bool IsPositiveTrigger(); virtual void Init(); + short int GetJoyIndex(void){ + return m_joyindex; + } + /* --------------------------------------------------------------------- */ /* Python interface ---------------------------------------------------- */ /* --------------------------------------------------------------------- */ -- cgit v1.2.3