mirror of
https://github.com/marcriera/ddgo-converter.git
synced 2025-04-18 10:09:27 +02:00
Sync before processing power/brake data
This commit is contained in:
parent
bed298ac99
commit
52a34383cc
1 changed files with 35 additions and 34 deletions
|
@ -240,6 +240,7 @@ class ClassicGamepad(PhysicalGamepad):
|
|||
input_events.append(InputEvent(InputEvent.EventType(self.Buttons.BUTTON_C in self.buttons), InputEvent.Button.BUTTON_C))
|
||||
input_events.append(InputEvent(InputEvent.EventType(self.Buttons.BUTTON_SELECT in self.buttons), InputEvent.Button.BUTTON_SELECT))
|
||||
input_events.append(InputEvent(InputEvent.EventType(self.Buttons.BUTTON_START in self.buttons), InputEvent.Button.BUTTON_START))
|
||||
if event.type == evdev.ecodes.EV_SYN:
|
||||
match self.power:
|
||||
case 6:
|
||||
input_events.append(InputEvent(InputEvent.EventType.POWER_NOTCH, 0))
|
||||
|
|
Loading…
Add table
Reference in a new issue