Ajout de la manette

This commit is contained in:
Philippe Roy 2023-07-22 02:07:39 +02:00
parent 4afd0d4efe
commit cb02f9309d

7
fop.py
View File

@ -56,12 +56,11 @@ def deplacement(cont):
recul_camera = 40
idle=True
# Avancer : Flèche haut - Up arrow
# joy_leftstick_y < -0.5 -> avancer
# Evènements de la manette
# print ("leftstick : ", joy_leftstick_x , joy_leftstick_y)
# print ("rightstick : ", joy_rightstick_x , joy_rightstick_y)
if joy_events:
print(joy_events)
# if joy_events:
# print(joy_events)
# Avancer : Flèche haut - Up arrow
if (keyboard.inputs[bge.events.UPARROWKEY].status[0] == ACTIVATE or joy_leftstick_y<-0.5) and obj['chute']==False: