From cb02f9309d5c4034f6e540f20a39b38dd54da27c Mon Sep 17 00:00:00 2001 From: Philippe Roy Date: Sat, 22 Jul 2023 02:07:39 +0200 Subject: [PATCH] Ajout de la manette --- fop.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fop.py b/fop.py index 483cb68..171736d 100644 --- a/fop.py +++ b/fop.py @@ -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: