Add files via upload
This commit is contained in:
parent
8d6ec739bd
commit
a3fd5c01d4
8 changed files with 31 additions and 14 deletions
|
@ -28,7 +28,10 @@ class gamepad:
|
|||
self._pygame = pygame
|
||||
self._start()
|
||||
def _tick(self):
|
||||
events = _inputs.get_gamepad()
|
||||
try:
|
||||
events = _inputs.get_gamepad()
|
||||
except:
|
||||
return
|
||||
if not self._pygame.display.get_active():
|
||||
return
|
||||
self.founded = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue