Commit Graph

44 Commits

Author SHA1 Message Date
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
Henrik Rydgård
9804a905c8 More tweaks (work around the old problem where lingering analog values biased the digital input) 2023-03-31 20:27:30 +02:00
Henrik Rydgård
48993f4f4b Control: Add debug display, do assorted fixes. 2023-03-31 20:12:48 +02:00
Henrik Rydgård
025ec248e4 Don't need two SetCallback functions. 2023-03-31 11:11:46 +02:00
Henrik Rydgård
778d9ac5ca Handle mapping signed axis to our only unsigned input, VIRTKEY_SPEED_ANALOG. 2023-03-31 11:05:33 +02:00
Henrik Rydgård
ea60ff2235 Add missing locking to control mapper 2023-03-31 11:05:33 +02:00
Henrik Rydgård
88e89653b1 Bring back zeroing of the opposite direction. 2023-03-31 11:05:33 +02:00
Henrik Rydgård
fa0fb6eee6 Rework and simplify VIRTKEY_SPEED_ANALOG 2023-03-31 11:05:33 +02:00
Henrik Rydgård
ca300a4dfd More callback fixes 2023-03-31 11:05:33 +02:00
Henrik Rydgård
7dfa587fe2 Remove in/out function arguments 2023-03-31 11:05:33 +02:00
Henrik Rydgård
526b4f782d Fixes, add callback for analog virtual keys
Some fixes
2023-03-31 11:05:33 +02:00
Henrik Rydgård
8dabcaea7d Enable virtual key mappings in UpdatePSPState 2023-03-31 11:05:32 +02:00