Blender Git Loki
Git Commits -> Revision 885fa49
Revision 885fa49 by Campbell Barton (master) April 7, 2009, 06:23 (GMT) |
BGE Joystick Sensor - Raised limit of 2 axis to 4 axis pairs (4==8 joysticks axis pairs) - Added a new Joystick Sensor type "Single Axis", so you can detect horizontal or vertical movement, rather then just Up/Down/Left/Right - added Python attribute "axisSingle" so you can get the value from the selected axis (rather then getting it out of the axis list) - renamed Py attribute "axisPosition" to "axisValues" (was never in a release) If we need to increase the axis limit again just change JOYAXIS_MAX and the button limits. |
Commit Details:
Full Hash: 885fa49aa4cd49a552bfe6210e3cb4701c4a5d04
SVN Revision: 19575
Parent Commit: 816a9f3
Lines Changed: +168, -166
10 Modified Paths:
/source/blender/makesdna/DNA_sensor_types.h (+7, -4) (Diff)
/source/blender/src/buttons_logic.c (+33, -23) (Diff)
/source/gameengine/Converter/KX_ConvertSensors.cpp (+5, -0) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp (+29, -61) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_Joystick.h (+13, -28) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_JoystickDefines.h (+6, -0) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp (+3, -1) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.cpp (+59, -44) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.h (+3, -1) (Diff)
/source/gameengine/PyDoc/SCA_JoystickSensor.py (+10, -4) (Diff)
/source/blender/src/buttons_logic.c (+33, -23) (Diff)
/source/gameengine/Converter/KX_ConvertSensors.cpp (+5, -0) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp (+29, -61) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_Joystick.h (+13, -28) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_JoystickDefines.h (+6, -0) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp (+3, -1) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.cpp (+59, -44) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.h (+3, -1) (Diff)
/source/gameengine/PyDoc/SCA_JoystickSensor.py (+10, -4) (Diff)