Commit Graph

236 Commits

Author SHA1 Message Date
Henrik Rydgård
3a599c4714 Fix audio focus issue by tracking the cause of lost focus.
Fixes #21643
2026-05-06 00:06:32 +02:00
Henrik Rydgård
f703bc69c4 Analog stick autorotation now uses game timing.
Should fix frameskipping problem, where this didn't work in God of War
if frameskipping was on.
2026-03-31 11:14:48 -06:00
Henrik Rydgård
75453632f9 Handle inset adjustements on the C++ side, handle them better in the UI. 2026-03-14 18:13:37 +01:00
Henrik Rydgård
160e2c4f9b Refactor: Call GetLayoutBounds on the screen instead of the context where possible.
This will allow screens to influence the layout bounds in a unified way
2026-03-14 13:07:48 +01:00
Henrik Rydgård
e780e32f98 Controls: Add a setting for the threshold used to map analog stick inputs to digital buttons 2026-03-02 22:50:15 +01:00
Henrik Rydgård
e46825d7a0 Restore "Show PSP" in control mapping, that button got lost somehow. However it's still not super useful. + readme updates 2026-03-02 01:53:13 +01:00
Henrik Rydgård
734b2a55de Move to a global controlmapper 2026-02-12 23:06:26 +01:00
Henrik Rydgård
c5e257635f ControlMapper: Support multiple listeners 2026-02-12 23:01:46 +01:00
Henrik Rydgård
a6ac956884 Input system refactor: Replace 5 callbacks with an interface 2026-02-12 22:52:16 +01:00
Henrik Rydgård
756d161070 Add a warning to control autoconfigure 2026-01-25 15:26:53 +01:00
Henrik Rydgård
34938e3de6 Move Notice to Common/UI 2026-01-25 15:10:26 +01:00
Henrik Rydgård
18a67b82d2 Do the same with KeyInputFlags. Fix minor UI misalignments 2025-12-19 13:41:58 +01:00
Henrik Rydgård
2c75946e6c Switch ControlMappingScreen to a two-pane layout 2025-11-25 19:07:52 +01:00
Henrik Rydgård
1d23a58a4e Fix control mapping screen in portrait 2025-11-25 19:06:22 +01:00
Henrik Rydgård
6cc945e57a Rework the reporting screen a bit 2025-11-23 01:15:07 +01:00
Henrik Rydgård
57507ec9e6 GameScreen: New look in portrait mode 2025-11-15 20:44:14 +01:00
Henrik Rydgård
8b52cf67af Add a way to put the "ExtraButtons" in a popup menu, use on control mapping screen 2025-11-15 20:44:14 +01:00
Henrik Rydgård
09d195c9ef More layout work. Use GameDB titles on the top of the game screen. 2025-11-15 20:44:14 +01:00
Henrik Rydgård
9de8e75709 AnchorLayout: Allow centering separately for horizontal and vertical 2025-11-10 12:10:08 +01:00
Henrik Rydgård
5bb740c373 Control mapping: Remove some old uses of std::bind, and an unnecessary enum. 2025-11-09 22:09:43 +01:00
Henrik Rydgård
055d47606b Switch control mapping over to tabbed interface (needs more work) 2025-11-09 17:49:17 +01:00
Henrik Rydgård
67010ff2af Split the display layout config between landscape and portrait orientations 2025-11-05 12:49:51 +01:00
Henrik Rydgård
81b77f6479 Switch over the analog calibration screen to the new TwoPane framework 2025-10-29 10:25:29 +01:00
Henrik Rydgård
89b3abbe7b More topbar styling 2025-10-29 09:43:16 +01:00
Henrik Rydgård
2b9f2672bb UI screens header cleanup 2025-10-29 00:15:41 +01:00
Henrik Rydgård
7ffd72b32e Rename some screen classes 2025-10-29 00:02:43 +01:00
Henrik Rydgård
138be54f6a More misc work 2025-10-28 11:54:07 +01:00
Henrik Rydgård
9ed3fc0eaa Some work on the credits screen, main screen 2025-10-28 11:27:31 +01:00
Henrik Rydgård
acf273a55a Rename "vertical layout" to "portrait layout", to avoid confusion 2025-10-23 16:11:54 +02:00
Henrik Rydgård
58456ae950 Remove the UI::EventReturn return values. Makes editing the UI nicer. 2025-09-15 11:09:00 -06:00
Henrik Rydgård
e78341b822 Hide theme behind an accessor (so we can expose it only as const) 2025-09-15 09:31:18 -06:00
Nab
5200ace606 GUI margin and Back button adjustments 2025-09-07 20:10:50 +02:00
Henrik Rydgård
b472eb8b8b Remove a lot of unnecessary string constructors 2025-08-31 15:49:29 +02:00
Henrik Rydgård
263d0b3983 SDL: Fix bug where the mouse got stuck in relative mode when mapping mouse inputs 2025-07-10 20:29:24 +02:00
Henrik Rydgård
3a4b27b086 Fix some more presentation issues 2024-10-22 12:29:32 +02:00
Henrik Rydgård
e51c58716b Fix minor code issues flagged by PVS-Studio and reported by alphrixus. 2024-10-10 14:10:30 +02:00
Henrik Rydgård
4d6905672e Bunch more linting 2024-10-10 11:57:10 +02:00
Henrik Rydgård
fd9daf7594 Fix some minor issues found by --sanitize. Add --sanitizeub.
Unfortunately the ub (undefined behavior) sanitizer has some bugs, it doesn't
understand pointers to member functions, so can't use it in-game (due to the
vertex decoder).

Thanks Nemoumbra for the reminder.
2024-07-22 11:37:18 +02:00
Henrik Rydgård
58f7e190c4 Move the category array outside the function 2024-05-21 11:17:34 +02:00
Henrik Rydgård
635b4d4acf Fix memory error in control mapping dialog
Can't put pointers to member variables in a static const array, it'll
get initialized once, then it'll be wrong the next time.
2024-05-21 11:15:54 +02:00
Herman Semenov
0d1f7e2e6c [Core/GL/UI] Not all fields initilize and minor code refactor 2024-04-11 15:50:42 +03:00
Henrik Rydgård
c5791764d8 Make the i18n T function use std::string_view
Buildfixes, crashfixes

One more

Android buildfix

Buildfix Qt
2024-02-12 18:44:39 +01:00
Henrik Rydgård
04ea4987b0 Bring back the old combo behavior, make the new behavior a checkbox (strict combo order). 2024-01-29 18:06:31 +01:00
Henrik Rydgård
c29f81da36 Fix issue with the collapsible sections in control mapping collapsing on every change. 2024-01-29 17:57:01 +01:00
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
e47791d4c4 Remove unnecessary vector 2023-12-21 11:16:10 +01:00
Henrik Rydgård
9cb3d03098 Add categories for control bindings 2023-12-20 16:20:26 +01:00
Henrik Rydgård
2d4e59eb62 Control mapping UI: Fix bug where we warn about combo mappings unnecessarily for axis input 2023-12-20 15:37:46 +01:00
Herman Semenov
95f535dab0 [UI/Windows] Object out of scope optimization for better codegeneration (lower level scope) 2023-12-20 12:35:02 +03:00
Henrik Rydgård
812b1024f0 Move TouchTestScreen to DevScreens 2023-12-14 19:01:19 +01:00