Addiing individual controller support. /JL
This commit is contained in:
@@ -57,7 +57,7 @@ def main():
|
||||
print("Joystick button pressed.")
|
||||
if event.button == 0:
|
||||
joystick = joysticks[event.instance_id]
|
||||
if joystick.rumble(0, 0.7, 500):
|
||||
if joystick.rumble(0.7, 1.0, 1000):
|
||||
print(f"Rumble effect played on joystick {event.instance_id}")
|
||||
|
||||
if event.type == pygame.JOYBUTTONUP:
|
||||
|
||||
Reference in New Issue
Block a user