Shuvit game master repo. http://shuvit.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

joy_sens.py 319B

1234567891011121314
  1. import bge
  2. def main():
  3. dict = bge.logic.globalDict #Get the global dictionary
  4. if bge.logic.joysticks[0] == None:
  5. dict['joy_1'] = True
  6. else:
  7. dict['joy_1'] = False
  8. if bge.logic.joysticks[1] == None:
  9. dict['joy_2'] = True
  10. else:
  11. dict['joy_2'] = False
  12. main()