Commit c9780ac
authored
use the original dpad input, not the modified dpad output, in hotkeys (#1635)
hotkey processing used to be before the core gamepad process, so it was
reading the unmodified dpad input, but #1593 moved hotkey processing to
after, so what it ends up reading is the output, which gets bits masked
off of it when in LS/RS mode (so as to not do a double output of a
direction in LS and DP outputs, when that's likely not intended). all
the code involved here makes sense, but it broke in tandem as an order
of operations sequence.
this separates the concerns by having the hotkey dpad read use
dpadOriginal, which is only used for the display, but is exactly what we
need --- the dpad input element, untouched by gamepad output processing.
I moved where dpadOriginal gets set in order to make its purpose
clearer --- it happens on read(), now, not process()ing.
fixes #16341 parent f3f1266 commit c9780ac
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | 280 | | |
284 | 281 | | |
285 | 282 | | |
| |||
373 | 370 | | |
374 | 371 | | |
375 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| |||
0 commit comments