Fixed a bug to allow rumble values 255. /JL
This commit is contained in:
@@ -77,7 +77,7 @@ class DualSenseController(ControlsBase):
|
||||
pass
|
||||
|
||||
def rumble(self, left, right):
|
||||
if not left in range(255) or not right in range(255):
|
||||
if not left in range(256) or not right in range(256):
|
||||
raise ValueError("left and right values must be in the range 0 - 255")
|
||||
self.device.setLeftMotor(left)
|
||||
self.device.setRightMotor(right)
|
||||
|
Reference in New Issue
Block a user