Blender Git Commit Log

Git Commits -> Revision 77484d2

Revision 77484d2 by Campbell Barton (master)
October 7, 2008, 05:09 (GMT)
joystick update
* use SDL events to trigger the sensor, trigger was being forced every tick. removed workaround for this problem.
* added "All Events" option, similar to all keys in the keyboard sensor.
This means every event from the joystick will trigger the sensor, however only events from the selected type (axis/button/hat) is used to set the positive state of the sensor.
* Added python function sens_joy.GetButtonValues(), returns a list of pressed button indicies.
* Removed pressed/released option for joystick buttons, it was the same as the invert option.

Commit Details:

Full Hash: 77484d28d5098de2fd3924df28d846023d7751ec
SVN Revision: 16957
Parent Commit: 8d73ea7
Lines Changed: +196, -172

9 Modified Paths:

/intern/SoundSystem/sdl/SND_SDLCDDevice.cpp (+2, -0) (Diff)
/source/blender/makesdna/DNA_sensor_types.h (+6, -3) (Diff)
/source/blender/src/buttons_logic.c (+27, -19) (Diff)
/source/gameengine/Converter/KX_ConvertSensors.cpp (+3, -4) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp (+45, -65) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_Joystick.h (+13, -11) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp (+21, -4) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.cpp (+68, -61) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.h (+11, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021