diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-09-02 06:03:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-09-02 06:03:03 +0400 |
commit | 81ad271d157c70433b36af31581261ae8c2098a4 (patch) | |
tree | 890d6e9eac942613086fde57b8384b5c5ae30256 /source/gameengine/GameLogic/SCA_JoystickSensor.h | |
parent | aa4e4da8c31a09c8afe0e60d26a1e68dd949e6b8 (diff) |
BGE joystick sensor bugfix, was sending true events logic tick (as if the true pulse option was enabled).
Diffstat (limited to 'source/gameengine/GameLogic/SCA_JoystickSensor.h')
-rw-r--r-- | source/gameengine/GameLogic/SCA_JoystickSensor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/gameengine/GameLogic/SCA_JoystickSensor.h b/source/gameengine/GameLogic/SCA_JoystickSensor.h index a21146b568b..8b74f6e0296 100644 --- a/source/gameengine/GameLogic/SCA_JoystickSensor.h +++ b/source/gameengine/GameLogic/SCA_JoystickSensor.h @@ -69,6 +69,12 @@ class SCA_JoystickSensor :public SCA_ISensor */ bool m_istrig; /** + * Last trigger state for this sensors joystick, + * Otherwise it will trigger all the time + * this is used to see if the trigger state changes. + */ + bool m_istrig_lastjs; + /** * The mode to determine axis,button or hat */ short int m_joymode; |