Commit Graph

55 Commits

Author SHA1 Message Date
Henrik Rydgård
3895cfff74 Add "Analog trigger threshold" setting, for conversion of analog trigger inputs to digital button inputs. 2023-12-28 13:36:03 +01:00
Henrik Rydgård
33c0052c70 Merge pull request #18597 from hrydgard/combo-key-behavior
Combo key: Only trigger when keys are pressed in the mapped order
2023-12-22 22:52:23 +01:00
Henrik Rydgård
d21b185b5c Combo keys: Only trigger if keys are pressed in the same order 2023-12-21 12:07:14 +01:00
Henrik Rydgård
81923034f6 ControlMapper: Keep track of when inputs were triggered 2023-12-21 12:02:15 +01:00
Henrik Rydgård
16a31c2554 Avoid spamming the keymap lock during input processing 2023-12-21 11:54:30 +01:00
Henrik Rydgård
144ed7a3ab Reduce memory allocations during controller processing 2023-12-21 11:15:40 +01:00
Henrik Rydgård
ee93e4a2ca Batch axis events all the way into ControlMapper 2023-09-29 11:14:19 +02:00
Henrik Rydgård
65a787026d Fix a range check and array size. In reality, probably not a danger. 2023-09-27 17:36:51 +02:00
Henrik Rydgård
72be2f5459 Restore the D-Pad behavior (see #18028) 2023-09-11 11:41:29 +02:00
Henrik Rydgård
be2f81c3eb Controls: Make the analog/digital mapping clash resolution more gentle.
Now takes the time into account, so clashing digital input will only shrink
analog inputs once it's a few seconds old.

Also fixes a bug where if there are both inputs, it was hard to reach
the limits because the digital input itself ended up getting shrunk.

This might help #17860
2023-08-23 18:51:27 +02:00
Henrik Rydgård
a07079bdf9 Timestamp control inputs 2023-08-23 17:52:30 +02:00
Henrik Rydgård
9623f515e7 Add back support for custom buttons to control analog inputs 2023-05-08 10:46:28 +02:00
Henrik Rydgård
b0d05a5a7c Remove some logic that did not do the right thing 2023-05-02 23:51:40 +02:00
Henrik Rydgård
c037f6731d Better (but not great) workaround for key bindings that pop up dialogs. 2023-05-02 21:36:17 +02:00
Henrik Rydgård
4bb7c05132 Remove some unnecessary state clearing 2023-04-20 11:00:19 +02:00
Henrik Rydgård
7594ae8785 Resurrect and refactor the AxisSwap feature. Fixes #17292 2023-04-20 10:53:11 +02:00
Henrik Rydgård
9612bff2ac Properly fix the analog limiter feature ("lightly"). 2023-04-15 19:56:27 +02:00
Henrik Rydgård
23c940370e abs->fabsf. Might fix #17284 2023-04-15 10:13:57 +02:00
Henrik Rydgård
d1e21ab896 Fix return value from control mapper Key. Fixes volume key issue on Android. 2023-04-02 10:41:26 +02:00
Henrik Rydgård
c1b5aed9b7 Cleanup, confine g_controllerMap access to KeyMap.cpp 2023-04-01 20:28:42 +02:00
Henrik Rydgård
d523005c2b Cleanup 2023-04-01 19:02:20 +02:00
Henrik Rydgård
0e1c42ce70 Plumb multimappings all the way through. 2023-04-01 13:50:57 +02:00
Henrik Rydgård
f3012f6914 Break out the signed->unsigned axis mapping 2023-04-01 09:07:29 +02:00
Henrik Rydgård
0b574613b9 Address assorted feedback 2023-04-01 09:01:27 +02:00
Henrik Rydgård
04321284c0 Remove redundant callback 2023-04-01 08:57:42 +02:00