Commit febc212
committed
Add update function to PedalsJoystick
Matching the layout of the ShiftJoystick example, this only sends the Joystick USB packet if the pedals have actually changed position. This should avoid issues with the pedals "spamming" inputs and stealing a game's input priority even when they're constantly 0.1 parent 3eb0f29 commit febc212
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
0 commit comments