App: has_joystick

has_joystick
  • Returns if the BGE was built with joystick support

Return Type:
  • Boolean
Values:
  • True: BGE has joystick support
     
  • False: BGE doesn't have joystick support
Sample Code

################## find out if BGE built with joystick support
 
# import bge

import bge

# joystick support
joy_support = bge.app.has_joystick