Game Logic: joysticks

joysticks
  • Returns a list of the attached joysticks

Return Type:
  • list [ string ]
The list size is the maximum number of allowed joystick slots

Joystick name is displayed in it's assigned slot

Returns None if there isn't a joystick assigned to the slot
Sample Code

################## get a list of the attached joysticks
# import bge
import bge

# get a list of the joysticks
jStick_List = bge.logic.joysticks