Map name typo fix

This commit is contained in:
Fabio Manganiello 2021-05-15 23:53:24 +02:00
parent 85d975edc6
commit 93c3327bcd

View file

@ -230,7 +230,7 @@ class JoystickJstestBackend(Backend):
evt_class = JoystickButtonPressedEvent if pressed else JoystickButtonReleasedEvent evt_class = JoystickButtonPressedEvent if pressed else JoystickButtonReleasedEvent
self.bus.post(evt_class(device=self.device, button=button)) 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.bus.post(JoystickAxisEvent(device=self.device, axis=axis, value=value))
self._state = state self._state = state