Fixed a bug in update_gamepad
This commit is contained in:
parent
ab2a5f58f5
commit
89a4bf2452
@ -280,8 +280,8 @@ def update_gamepad():
|
||||
global gamepadL1, gamepadR1, gamepadL2, gamepadR2
|
||||
global gamepadShare, gamepadOptions, gamepadPlaystation, gamepad
|
||||
|
||||
try:
|
||||
if gamepad:
|
||||
if gamepad:
|
||||
try:
|
||||
# Get D-pad state
|
||||
hat = gamepad.get_hat(0)
|
||||
gamepadLeft = hat[0] < 0
|
||||
@ -308,8 +308,8 @@ def update_gamepad():
|
||||
gamepadShare = gamepad.get_button(8)
|
||||
gamepadOptions = gamepad.get_button(9)
|
||||
gamepadPlaystation = gamepad.get_button(10)
|
||||
except:
|
||||
pass
|
||||
except:
|
||||
pass
|
||||
|
||||
def adjust_master_volume(change):
|
||||
"""Adjust the master volume for all sounds.
|
||||
|
Loading…
x
Reference in New Issue
Block a user