I can't seem to figure out why it is that, whenever I use pygame.JOYAXISMOTION and pygame.JOYBUTTONDOWN at the same time in a script, axismotion just stops working... I tried using elif instead of if, but with the same result
It is as following in the script:
Code: Select all
if event.type == pygame.JOYAXISMOTION:
if event.axis == 2:
LefRig = event.value
UpdateMotors = 1
elif event.axis == 3:
ForBac = event.value
UpdateMotors = 1
if event.type == pygame.JOYBUTTONDOWN:
if event.button == PS3_BUTTON_TRI:
print("Triangle pressed")