From c3f3d80ff33ae62911f0be0fd2f18cc160e48c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Beaulac?= Date: Sat, 27 Jan 2024 02:24:00 -0500 Subject: [PATCH] Update commandgenerichid.py --- commands2/button/commandgenerichid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands2/button/commandgenerichid.py b/commands2/button/commandgenerichid.py index 3bf95e09..79b41280 100644 --- a/commands2/button/commandgenerichid.py +++ b/commands2/button/commandgenerichid.py @@ -39,7 +39,7 @@ def button(self, button: int, loop: Optional[EventLoop] = None) -> Trigger: """ if loop is None: loop = CommandScheduler.getInstance().getDefaultButtonLoop() - return Trigger(loop, lambda: self._hid.getRawButtonPressed(button)) + return Trigger(loop, lambda: self._hid.getRawButton(button)) def pov( self, angle: int, *, pov: int = 0, loop: Optional[EventLoop] = None