joystick update
authorCampbell Barton <ideasman42@gmail.com>
Tue, 7 Oct 2008 05:09:24 +0000 (05:09 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 7 Oct 2008 05:09:24 +0000 (05:09 +0000)
commit77484d28d5098de2fd3924df28d846023d7751ec
tree3ea8a3660c8e9bb18f0421f6d95c0a604fd710c1
parent8d73ea72a75ce5567fc2a39f2acc2ad5b2543f4c
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.
intern/SoundSystem/sdl/SND_SDLCDDevice.cpp
source/blender/makesdna/DNA_sensor_types.h
source/blender/src/buttons_logic.c
source/gameengine/Converter/KX_ConvertSensors.cpp
source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
source/gameengine/GameLogic/Joystick/SCA_Joystick.h
source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp
source/gameengine/GameLogic/SCA_JoystickSensor.cpp
source/gameengine/GameLogic/SCA_JoystickSensor.h