Blender Git Commit Log

Git Commits -> Revision 2fa8504

Revision 2fa8504 by Campbell Barton (master)
May 25, 2009, 06:24 (GMT)
BGE Joystick Hat Bugfix
bug reported by blenderage on blenderartist (found other bugs too).

- "All Hat Events" didnt work.
- Multiple hats didnt work
- use a menu with direction names rather then have the user guess. disallow zero as a direction.
- Allow up to 4 hats (was 2).
- Python api was clamping the axis to 2, maximum is currently JOYAXIS_MAX - 16
- New python attributes hatValues and hatSingle, match axis functions.
- Use SDL Axis events to fill in the axis and hat array rather then filling in every axis with SDL_JoystickGetAxis for each axis event.

Commit Details:

Full Hash: 2fa8504dd104e0bde32ee487f97fbce4fd6d7104
SVN Revision: 20397
Parent Commit: 2a9d960
Lines Changed: +99, -100

8 Modified Paths:

/source/blender/src/buttons_logic.c (+7, -6) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp (+10, -24) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_Joystick.h (+9, -35) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_JoystickDefines.h (+1, -0) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp (+8, -5) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.cpp (+32, -20) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.h (+10, -7) (Diff)
/source/gameengine/PyDoc/GameTypes.py (+22, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021