diff options
| author | Majed Alkhaleefah <majedalkhaleefah@gmail.com> | 2026-03-24 06:37:09 +0000 |
|---|---|---|
| committer | Aymeric Wibo <obiwac@FreeBSD.org> | 2026-03-24 06:37:19 +0000 |
| commit | c586944fa20899ab0f6b58b550e753d13d889c5b (patch) | |
| tree | 81393ed673ed649d9523853f26f41cd293437e8a /kerberosIV/(developers-only) | |
| parent | c6bcf6e6fd507d952a48226b51cc161b8ef972a2 (diff) | |
hgame_dpad_cb() previously exited early whenever conflicting directions
were input (e.g., UP + DOWN) without saving said input to the
hgame_softc state. This led to a desync between the driver and the
gamepad.
This patch instead handles conflicting inputs by cancelling them out
with each other.
Remove early return. Calculate axis value by subtraction.
Reviewed by: obiwac
Approved by: obiwac
Differential Revision: https://reviews.freebsd.org/D55849
Diffstat (limited to 'kerberosIV/(developers-only)')
0 files changed, 0 insertions, 0 deletions
