Commit Graph

107 Commits

Author SHA1 Message Date
Henrik Rydgård
862fb951f1 Add support for loading mp3 files as UI sound.
Fixes #18136
2024-04-09 19:15:49 +02:00
Henrik Rydgård
616ee81f84 Add another parameter to the internal "request" framework. 2024-04-06 12:04:45 +02:00
Henrik Rydgård
5a8140c301 Initialize RAIntegration support if available. Untested. 2024-04-05 18:15:10 +02: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
8faba8426a AdrenoTools: Fix picking zip files from the Downloads folder. Add more validation. 2024-01-15 11:46:41 +01:00
Henrik Rydgård
9c9fe8bf8f Add string_view functionality to the core utf-8 parsing code 2024-01-12 14:03:02 +01:00
Henrik Rydgård
19e4de5088 Change global UI messages to use an enum instead of strings.
Makes it easier to add new ones and delete outdated ones without missing
any uses.
2023-09-30 11:37:02 +02:00
Henrik Rydgård
ade64171ce Proof-of-concept: libchdr works on Windows 2023-09-29 10:05:19 +02:00
Henrik Rydgård
c28dc9e4f2 Pass in accelerometer readings using NativeAccelerometer instead of NativeAxis 2023-09-27 11:34:31 +02:00
Henrik Rydgård
80a99a67d9 Control: Change internal interfaces to batch-process input axis updates
These naturally come in bunches on many platforms like Android, so lay
some groundwork to also handle them in bunches to minimize locking in
the future.

Linux buildfix
2023-08-31 11:55:53 +02:00
Henrik Rydgård
60492ae579 Make System_ShowFileInFolder a "request"
Also makes support queryable.

Lets us remove the dummy implementations.
2023-08-24 14:22:35 +02:00
Henrik Rydgård
0477ba8c78 Core.cpp: Some slight simplifications 2023-08-10 17:15:56 +02:00
Henrik Rydgård
85f5136a81 Add a GetProperty query for the git version 2023-07-20 10:57:52 +02:00
Henrik Rydgård
2537f76277 UI: Add a basic FileChooserChoice view 2023-07-16 12:14:40 +02:00
Henrik Rydgård
84fffec4f3 Switch all NativeMessageReceived to System_PostUIMessage 2023-07-06 17:26:02 +02:00
Henrik Rydgård
38f174eab4 Add query for system text input 2023-06-22 08:58:30 +02:00
Henrik Rydgård
2675d6ea43
Input event and device enums (#17514)
* Switch deviceID from int to enum InputDeviceID, globally

* Switch axisId to enum InputAxis

* Change int keycodes to InputKeyCode where it makes sense.

* SDL input buildfix

* SDL keycode buildfix

* Switch on enum warning fixes

* Qt keycode buildfix

* iOS keycode buildfix

* UWP keycode buildfix

* More iOS buildfix

* More iOS buildfix

* Update DinputDevice.cpp
2023-05-26 18:40:13 +02:00
Unknown W. Brackets
c03501c506 Qt: Buildfix with SDL disabled. 2023-05-04 19:18:58 -07:00
Henrik Rydgård
42efc08e64 Couple buildfixes after the g_display refactoring
Should help #17250
2023-04-08 09:25:16 +02:00
Henrik Rydgård
38f4cc4cc9 Make reverse mapping lookup work for the simple PSP buttons. 2023-03-31 11:05:29 +02:00
Unknown W. Brackets
441c940fa9 UI: Remove some unnecessary Host.h includes. 2023-03-25 17:19:21 -07:00
Henrik Rydgård
d586ec0d5e Don't create Host objects except in headless/unittest 2023-03-25 10:47:01 +01:00
Henrik Rydgård
143f499d11 Remove a few of the Host implementations 2023-03-25 10:37:49 +01:00
Henrik Rydgård
5e36acb9eb Remove Host::UpdateSound 2023-03-25 10:18:29 +01:00
Henrik Rydgård
1250692657 Convert host->SetWindowTitle to a request 2023-03-24 17:52:01 +01:00
Henrik Rydgård
a5fdf3d05b Add samplerate argument to NativeMix 2023-03-24 14:48:53 +01:00
Henrik Rydgård
e21867315b Fix browsing for Cheat DB files. Easy now after the refactor! 2023-03-23 10:18:21 +01:00
Henrik Rydgård
b440e28e38 Remove System_SendMessage!
iOS, Qt buildfixes
2023-03-22 23:52:51 +01:00
Henrik Rydgård
4c99712b60 And "immersive", "audio_resetDevice" 2023-03-22 23:52:38 +01:00
Henrik Rydgård
87d0c21f14 Make proper requests for the external hardware commands (gps, microphone, camera) 2023-03-22 23:52:25 +01:00
Henrik Rydgård
5a55fd5fd3 And replace "graphics_restart", "toggle_fullscreen", etc 2023-03-22 23:52:15 +01:00
Henrik Rydgård
410b35fba3 Get rid of "finish" and "setclipboardtext" messages, replace with requests. 2023-03-22 22:17:26 +01:00
Henrik Rydgård
b7350f3cbf Fix folder browser on Android and Windows 2023-03-22 19:25:35 +01:00
Henrik Rydgård
9508ef467e Port folder browser too, now this time start with Qt 2023-03-22 19:25:35 +01:00
Henrik Rydgård
1c79fd8cf4 Fix Qt file browser, use to implement image browser 2023-03-22 15:52:25 +01:00
Henrik Rydgård
70f0ac04af Port the file browser spawned by the Load button to the new request stuff 2023-03-22 15:36:14 +01:00
Henrik Rydgård
cc7b9569f2 Fix InputBox in Qt 2023-03-22 14:39:57 +01:00
Henrik Rydgård
604f3b4500 Try to fix Qt. Still broken due to threading issue. 2023-03-22 14:30:44 +01:00
Henrik Rydgård
de064e210e Replace the inputbox queue with a more generic RequestManager. 2023-03-22 12:41:11 +01:00
Henrik Rydgård
f60f5ccaea Move SetDebugMode notification 2023-03-21 13:39:00 +01:00
Henrik Rydgård
c92a4acb40 Move NotifySymbolMapUpdated to System_Notify 2023-03-21 13:37:19 +01:00
Henrik Rydgård
06fcc9ccd7 Add System_Notify 2023-03-21 13:37:16 +01:00
Henrik Rydgård
d3955b42bb Rename some system functions, merge the Launch* ones.
android launchurl buildfix
2023-03-21 12:22:59 +01:00
Henrik Rydgård
a9eaa4fdc8 Get rid of an ifdef 2023-03-21 10:24:36 +01: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
ece6edfe83 SDL audio: Let's try 256 for fmt.samples. See issue #12705 2023-01-17 11:45:35 +01:00
Henrik Rydgård
d73196c7d6 Split up the GPU config change notifications 2022-11-21 15:14:20 +01:00
Henrik Rydgård
6f703128ec Experimentally revert "Delete some misguided FPU control code, that we definitely don't want"
This reverts commit d52d383c22.
2022-10-10 18:35:29 +02:00
Henrik Rydgård
d52d383c22 Delete some misguided FPU control code, that we definitely don't want 2022-10-10 10:46:51 +02:00
Henrik Rydgård
a831cab14c
Remove unmotivated check preventing texture ini creation on mobile. (#15647)
* Remove unmotivated check preventing  texture ini creation on mobile.

Fixes #15644

* Show a "toast" message on platforms that don't support opening a text editor, when you try to create/open a texture ini file.

* Avoid the need to ifdef around calls to SystemToast

* UWP buildfix (and some warning fixes).

And possibly libretro fix

* Rename for a bit more consistency
2022-07-10 22:34:44 +02:00