92 Commits

Author SHA1 Message Date
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
iota97
d0af5275ba Fix opacity 2021-08-21 21:30:37 +02:00
iota97
de68436084 Configurable analog head size 2021-08-21 21:24:14 +02:00
iota97
c17c045849 Make touch layout accurate 2021-08-20 12:46:46 +02:00
iota97
36df47d9a1 Fix action button size 2021-08-19 21:47:46 +02:00
iota97
3e894b0e9c Improve touch control layout screen 2021-08-19 20:02:14 +02:00
Henrik Rydgård
928bc88b01 Rename Unthrottle to Fast-forward globally 2021-08-18 09:28:13 +02:00
iota97
aab63e82ae Fix layout opacity 2021-08-12 11:36:14 +02:00
iota97
498878267a Customizable touch control (rebased with label) 2021-07-11 09:55:25 +02:00
Unknown W. Brackets
7f036f8431 UI: Fix L/R tab navigation. 2021-03-03 00:07:11 -08:00
Unknown W. Brackets
3c778f567c UI: Add text description for all views. 2021-02-21 16:38:02 -08:00
Unknown W. Brackets
f32f89dd90 Global: Remove some unused variables. 2021-02-15 11:59:45 -08:00
Henrik Rydgård
0e3a84b4a8 Move most GPU things to Common.
It works after the move, on Windows and Android at least.

Deletes the D3DX9 shader compiler loader, which was not used.
2020-10-04 23:39:02 +02:00
Henrik Rydgård
4f43cff5ca
Move fileutil, net, image loaders, ui to Common. (#13506)
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing

Let's also move net while we're at it.

Move the ZIM/PNG loaders over to Common.

Move the UI framework into Common

iOS buildfix

* Buildfix

* Buildfixes

* Apple buildfix

* This typo again..

* UWP buildfix

* Fix build of PPSSPPQt, such as it is (it's not in good condition...)

* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
Henrik Rydgård
989e353482 Common.h shouldn't include Log.h.
Buildfixes

More buildfixes. Move JSON code to common.
2020-10-04 11:42:14 +02:00
Henrik Rydgård
9e41fafd0d Move math and some file and data conversion files out from native to Common.
Buildfixing

Move some file util files

Buildfix

Move KeyMap.cpp/h to Core where they belong better.

libretro buildfix attempt

Move ini_file

More buildfixes
2020-10-04 09:12:46 +02:00
Henrik Rydgård
ff8148dd92 Move native/util, native/data and native/i18 to Common/Data.
Also move colorutil.cpp/h

linking build fix experiment

Delete a bunch of unused CMakeLists.txt files

CMakeLists.txt linking fix

Don't include NativeApp.h from any headers.

Android.mk buildfix

Half of the UWP fix

Buildfix

Minor project file cleanup

Buildfixes

Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
Henrik Rydgård
c41f875df4 Remove base/logging.h in a whole lot more places. 2020-08-15 19:09:00 +02:00
Henrik Rydgård
2e19d7aa0a Touch control layout screen: Make the expanded click zone around the controls symmetrical.
Just a minor tweak.
2020-07-12 10:39:25 +02:00
iota97
23f7f27c45 Fix decimal part 2020-07-12 09:47:44 +02:00
Henrik Rydgård
8e9061539f Touch control layout: Make dragging a lot less "jumpy" 2020-07-12 09:15:31 +02:00
Henrik Rydgård
1df9a84213 TouchControlLayoutScreen: Reorder functions in the file to make more sense. 2020-07-12 00:21:46 +02:00
Henrik Rydgård
1f7fcc1b5a Refactor TouchControlLayoutScreen - break out the actual editor into a separate view.
This solves most or all offset issues.
2020-07-12 00:21:30 +02:00
Unknown W. Brackets
e291a1d833 UI: Small cleanup in touch control layout editor. 2020-04-05 12:50:13 -07:00
iota97
a4a1b05842 Touch layout clean up 2020-04-01 11:34:54 +02:00
Unknown W. Brackets
02e5049375 UI: Properly clamp control positioning in edit. 2020-03-31 21:43:18 -07:00
iota97
e7bcf9a4c2 Use 2 different button for CW and CCW 2020-03-23 09:24:36 +01:00
iota97
45da319ce7 Auto rotating analog 2020-03-23 00:45:22 +01:00
Henrik Rydgård
45d94c4877 Switch all images to dynamic lookup in the atlas by string ID.
SLN fix

It works, but with the wrong images and the wrong characters!

Fix another bug in atlastool's binary output

Get Android building again.

Oops, didn't mean to disable this permanently.

Error checking

Minor cleanup

Gotta tweak my git ignores...

Regenerate metadata
2020-03-01 12:06:47 +01:00
Unknown W. Brackets
5009698cc0 Core: Use a shared_ptr for i18n categories.
This does not make them thread safe, but it reduces the chances of a crash
a bit (see #12594.)
2020-02-09 07:35:16 -08:00
iota97
f42e6a984f Rapid fire touch control 2020-01-28 08:52:18 +01:00
Henrik Rydgård
8203c79e43
Merge pull request #12567 from iota97/snap2
Use snap grid on resize as well
2020-01-26 11:36:28 +01:00
iota97
1332e3c1cc Flush other UI element draw before changing to noTex 2020-01-16 06:16:46 +01:00