blender/doc
Mitchell Stokes f2f2b6153a BGE: Adding a Python interface for handling joysticks without needing logic bricks. These new SCA_PythonJoystick objects can be accessed using bge.logic.joysticks, which is a list of joysticks. The length of the list is the number of maximum supported joysticks, and indexes that do not have a joystick available are set to None. This means joysticks can be checked for using something like:
if bge.logic.joysticks[0]:
    activate_player_one()

if bge.logic.joysticks[1]:
    activate_player_two()

etc..

The interface exposed by SCA_PythonJoystick is very similar to the joystick logic brick except for one key difference: axis values are normalized to a -1.0 to 1.0 range instead of -32767 to 32767, which is what the logic brick exposed.
2012-12-21 02:28:59 +00:00
..
blender_file_format switch verious references from py3.2 -> 3.3 or just 3. 2012-11-26 13:58:06 +00:00
build_systems Spellfixes: colour -> color 2012-07-04 12:19:50 +00:00
doxygen move bmesh wiki docs into bmesh header and update doxygen. 2012-02-27 20:27:19 +00:00
guides patch [#32791] Spelling mistakes corrected. 2012-10-07 03:26:30 +00:00
license == docs == 2010-10-13 14:44:22 +00:00
manpage osl style cleanup and update man-page. 2012-12-04 03:18:08 +00:00
python_api BGE: Adding a Python interface for handling joysticks without needing logic bricks. These new SCA_PythonJoystick objects can be accessed using bge.logic.joysticks, which is a list of joysticks. The length of the list is the number of maximum supported joysticks, and indexes that do not have a joystick available are set to None. This means joysticks can be checked for using something like: 2012-12-21 02:28:59 +00:00