Commit graph

21 commits

Author SHA1 Message Date
Henrik Rydgård
f206ed95eb Get rid of remains of support for non-square screen DPIs 2025-02-20 11:14:26 -06:00
Henrik Rydgård
4dd3621fa0 Remove some unnecessary <algorithm> includes. 2024-12-18 17:04:27 +01:00
Henrik Rydgård
d397635e49 Mouse input: Approximate the old smoothing function 2023-12-14 19:24:39 +01:00
Henrik Rydgård
7b0ee5440d Move the mouse event processing code out from NativeApp 2023-12-14 19:01:19 +01:00
Henrik Rydgård
94fb81466f Tilt: Make the deadzone circular, in addition to the inverse (low end radius). 2023-12-12 17:55:13 +01:00
Henrik Rydgård
4f2f1c4392 Tilt: Fix some edge cases leading to division by zero and similar. 2023-11-09 19:14:31 +01:00
Henrik Rydgård
3b004e7a4b Remove the last use of accelerometer axis events (calibration) 2023-09-27 11:33:40 +02:00
Henrik Rydgård
2ceb9942f3 Tilt: Add back inverse deadzone (low end radius). Allow choosing circular or per-axis. 2023-05-22 10:13:57 +02:00
Henrik Rydgård
53ed8a164e Prevent tilt-controlled left/right dpad butons from getting stuck
Silly typo from the input refactoring.

Fixes #17384
2023-05-02 22:29:30 +02:00
Henrik Rydgård
04d3d3111c Clean up __Ctrl button functions. 2023-04-01 08:55:45 +02:00
Henrik Rydgård
38f4cc4cc9 Make reverse mapping lookup work for the simple PSP buttons. 2023-03-31 11:05:29 +02:00
Henrik Rydgård
64e80423a6 Simplify the tilt code, tweak a bit 2023-02-16 11:07:57 +01:00
Henrik Rydgård
3e286b7a27 Apply sensitivity before deadzone. Feels more intuitive 2023-02-16 10:35:38 +01:00
Henrik Rydgård
a288c59841 Simplify tilt, step 1 2023-02-16 10:33:47 +01:00
Henrik Rydgård
7d40ed6ba1 Tilt control: Split the deadzone parameter since it needs to be different for different types.
Can at least share the string without problems.

Also rearrange the settings a little bit.
2023-02-11 23:42:55 +01:00
Unknown W. Brackets
2cada63087 UI: Buildfix on MSVC 2017. 2023-02-02 17:08:24 -08:00
Henrik Rydgård
af8e4cd36b Fixes for portrait mode. Move the haptic feedback setting where it belongs. 2023-02-02 11:59:56 +01:00
Henrik Rydgård
59dec197d8 Add previews for more types, fix mappings. 2023-02-02 01:09:33 +01:00
Henrik Rydgård
1f51a31544 Remove the separate deadzone-skip value. 2023-02-02 01:09:30 +01:00
Henrik Rydgård
4aeb1ef703 Better math, fix tilt calibration (was entirely broken) 2023-02-02 01:01:05 +01:00
Henrik Rydgård
3b36a1bb66 TiltEventProcessor belongs in Core, not UI. 2023-02-01 15:04:32 +01:00
Renamed from UI/TiltEventProcessor.cpp (Browse further)