From 93c3327bcd19dbd5f378230fca85a49fcf5c0469 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 15 May 2021 23:53:24 +0200 Subject: [PATCH] Map name typo fix --- platypush/backend/joystick/jstest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/joystick/jstest.py b/platypush/backend/joystick/jstest.py index 7e404cb92c..7cc4efcdc4 100644 --- a/platypush/backend/joystick/jstest.py +++ b/platypush/backend/joystick/jstest.py @@ -230,7 +230,7 @@ class JoystickJstestBackend(Backend): evt_class = JoystickButtonPressedEvent if pressed else JoystickButtonReleasedEvent self.bus.post(evt_class(device=self.device, button=button)) - for axis, value in diff.get('buttons', {}).items(): + for axis, value in diff.get('axes', {}).items(): self.bus.post(JoystickAxisEvent(device=self.device, axis=axis, value=value)) self._state = state