Aggiungi supporto per la pausa tramite un nuovo tasto nella classe KeyBindings
This commit is contained in:
+2
-2
@@ -155,8 +155,8 @@ class GameWindow:
|
||||
elif event.type == sdl2.SDL_JOYBUTTONUP:
|
||||
key = event.jbutton.button
|
||||
self.key_up(key)
|
||||
elif event.type == sdl2.SDL_JOYAXISMOTION:
|
||||
self.axis_scroll(event.jaxis.axis, event.jaxis.value)
|
||||
# elif event.type == sdl2.SDL_JOYAXISMOTION:
|
||||
# self.axis_scroll(event.jaxis.axis, event.jaxis.value)
|
||||
|
||||
|
||||
# Disegna qui gli sprite
|
||||
|
||||
Reference in New Issue
Block a user