Commit Graph

124 Commits

Author SHA1 Message Date
Henrik Rydgård
2c207aedf8 Fix problem where the touch screen controls got reactivated by gamepad input 2026-02-28 11:11:17 +01:00
Henrik Rydgård
7b1ba55e72 Prevent touch controls from fading away while being held.
Fixes #20531
2026-02-04 00:00:38 +01:00
Henrik Rydgård
481d0fd18c Switch TouchInputFlags to enum class, fix some minor UI issues
Scroll views now only wheel-scroll if the mouse is hovering over them.
2025-12-19 11:38:56 +01:00
Henrik Rydgård
1ea93e2913 Small refactor of text rect measurement. Add move/resize icons 2025-11-27 11:50:22 +01:00
Henrik Rydgård
2c75946e6c Switch ControlMappingScreen to a two-pane layout 2025-11-25 19:07:52 +01:00
Henrik Rydgård
7a8a642aed Convert the pause button to a normal customizable touch screen button 2025-11-25 15:47:05 +01:00
Henrik Rydgård
3116eba395 More UI work (#21035)
* Improve a couple of on-screen buttons (menu, fastforward)

* Fix the new continue button, oops

* Add some missing translations

* Split a translation string to make portrait look better

* More GameScreen redesign

* Don't accidentally go into game-specific mode

* Fix layout issue with popupscreens, fix context menu positioning

* One more icon
2025-11-24 20:33:13 +01:00
Henrik Rydgård
e172cc1060 Correct resetting some touch control parameters.
Fixes #20993
2025-11-22 16:41:12 +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
a183420a87 Orientation-specific defaults 2025-11-05 21:46:38 +01:00
Henrik Rydgård
063c7d4f7e Get separate touch screen config for portrait working 2025-11-05 21:01:37 +01:00
Henrik Rydgård
4c73103c6c Work on splitting touch controls between orientations 2025-11-05 20:29:55 +01:00
Henrik Rydgård
19f723d579 Notifications should obey insets 2025-10-29 14:22:17 +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
58456ae950 Remove the UI::EventReturn return values. Makes editing the UI nicer. 2025-09-15 11:09:00 -06:00
Henrik Rydgård
09e067c6e1 Revert "Get rid of remains of support for non-square screen DPIs"
This reverts commit f206ed95eb.
2025-05-21 21:41:50 +02:00
Henrik Rydgård
5549fddae5 Touch control layout screen: Resize the game image to fit the editing surface
Makes it easier to place controls properly.

Note, if you have disabled "Transparent UI background" in settings, this
won't do much.

This is a long-requested feature: #16228
2025-03-05 18:00:49 +01:00
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
6b753c1d63 Fix scaling issue in touch control layout screen, thanks @iota97
See #19573
2024-11-02 19:53:29 +01:00
Henrik Rydgård
e0c12c9547 More lint warning fixes 2024-10-10 10:52:45 +02:00
Henrik Rydgård
047913ddd3 Make sure we don't try to use out-of-bounds icons/shapes for custom buttons 2024-09-15 12:11:39 +02:00
Henrik Rydgård
e01ca5b057 Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Henrik Rydgård
455e28da6c Rename Point to Point2D to avoid a cocoa name clash 2024-05-29 18:52:39 +02:00
Henrik Rydgård
63181374c7 Finish previous commit 2023-12-29 17:24:15 +01:00
Henrik Rydgård
73836e7bcb Custom buttons: Store them in an array, remove as many count restrictions as possible. 2023-06-20 10:42:53 +02:00
Henrik Rydgård
ee6234ecb6 I18N: Switch to getting categories by index instead of by string lookup
Also gets rid of the shared_ptr usage, and generally makes things nicer.

Needed for later config refactorings, good to get in early.
2023-04-07 10:35:01 +02:00
Henrik Rydgård
6f9339b011 Add defaults for all int-slider settings too 2023-04-05 10:50:53 +02:00
Henrik Rydgård
5c36aec484 More renaming 2023-03-26 11:21:34 +02:00
Henrik Rydgård
e1ff498ba3 Rename "Combo" to "Custom" in the touch key mappings.
Need the name "Combo" for the new feature from PR #17168.
2023-03-26 11:05:39 +02:00
Henrik Rydgård
8b431b39ba Wrap the display globals in a struct (#16998)
* Wrap the display globals in a struct

Makes it easier to search/replace these, for future refactorings.

* Some renaming

* Qt buildfix, also fix the Qt build on Mac (got broken with battery changes)

* Attempt at buildfixing ios

* UWP buildfix
2023-02-25 13:09:44 +01:00
Henrik Rydgård
f68ba55f96 Minor initialization cleanups 2022-12-22 11:13:52 +01:00
Henrik Rydgård
489af071b9 TouchControlLayoutScreen: Reduce the amount of scissor calls
Who knows, might help #15773...
2022-11-30 15:19:08 +01:00
Henrik Rydgård
25e8f8385e Redo the control UI screen layout, slightly update the look 2022-11-30 10:56:29 +01:00
Henrik Rydgård
0ff5e0a955 Add checks preventing a number of "possible" divisions by 0 in layout 2022-11-30 10:15:30 +01:00
Henrik Rydgård
0a3d78221e Fix drag-background-through-buttons problem by adding "touch exclusive" mode to viewgroups.
Not using universally because I don't want to debug all the issues...
2022-11-27 16:16:18 +01:00
iota97
e4234bcfaf Solve easy exercise left to the reader 2022-11-25 09:31:30 +01:00
iota97
24ab2232fc Snap from screen center 2022-11-24 20:13:43 +01:00
Henrik Rydgård
575560f679 Enable game backgrounds on more screens 2022-11-22 22:53:54 +01:00
Henrik Rydgård
3e481634ac Merge pull request #15438 from iota97/grid
Fix grid align
2022-11-14 23:05:42 +01:00
Unknown W. Brackets
db400bd312 UI: Show standard back button on touch layout.
This is a bit less wide, but uses common logic to render.
Some are experiencing no left buttons on this screen, so this is a bit of
an experiment as well as making the UI more consistent.
2022-11-13 10:49:02 -08:00
iota97
fc0371273f Fix grid align 2022-03-13 08:07:14 +01:00
Unknown W. Brackets
2479d52202 Global: Reduce includes of common headers.
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00
Henrik Rydgård
20c3c8f291 Merge pull request #14848 from iota97/dpad-size-fix
Fix DPAD size calculation
2021-11-20 15:58:56 +01:00
iota97
5adaf87dbe Fix analog resize 2021-10-24 20:33:24 +02:00
Henrik Rydgård
cc43ce0404 Merge pull request #14944 from unknownbrackets/ui-touch-controls
Cleanup UI touch controls button handling
2021-09-28 19:37:29 +02:00
iota97
003a34ccf5 Increase few column width for long translation, make control binding a bit taller 2021-09-28 18:02:37 +02:00
Unknown W. Brackets
8f1cca8b83 UI: Use a proper view for touch control borders. 2021-09-27 17:42:47 -07:00
Unknown W. Brackets
db48e6bd1e UI: Allow touch control editor buttons to grow.
If the buttons need to be taller for various reasons, allow them to grow
and push other buttons up.  Add a scroll in case this requires a lot of
space.
2021-09-27 17:05:55 -07:00
iota97
5bf0068ea6 Fix DPAD size calculation 2021-09-13 22:25:46 +02:00