mirror of
https://forge.apps.education.fr/phroy/frankie-on-platform.git
synced 2024-01-27 11:32:04 +01:00
Ajout de la manette
This commit is contained in:
parent
4afd0d4efe
commit
cb02f9309d
7
fop.py
7
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:
|
||||
|
Loading…
Reference in New Issue
Block a user