Commit Graph
240 Commits
Author SHA1 Message Date
Henrik Rydgård 486370852f Restrict SDL audio buffer setting to 128, 256, 512, 1024, 2048. UI improvmeents 2025-04-15 19:26:26 +02:00
Jamie BainbridgeandHenrik Rydgård 3d0ef8c6e1 SDL audio: Add config slider for audio samples
As described on Issue #12705 several users have problems with audio
popping, crackling, and distorion with different sample values.

Previous commit ece6edf reduced default samples from 1024 to 256 but
there does not seem to be an ideal value for all platforms.

Make the option configurable in Audio Backend Settings.

Signed-off-by: Jamie Bainbridge <jamie.bainbridge@gmail.com>
2025-04-15 18:18:42 +02:00
Henrik Rydgård 0e429b74f1 ImGUI on SDL: Implement mouse cursor shape support 2025-04-10 22:54:12 +02:00
Henrik Rydgård 5f8f40e592 Add file browser support on Linux through portable-file-dialogs 2025-03-29 08:43:30 +01:00
Henrik Rydgård b05d6171d4 Add a consistent feature check - only desktops get to use CacheFullISOInRAM. 2025-03-27 01:02:28 +01:00
Henrik Rydgård 1a1483478a Fix live resizing, implement setting on all platforms. 2025-02-20 17:14:59 -06:00
Henrik Rydgård 0a641e1b36 Assorted warning fixes, fix regression on Mac (save/load dialogs) 2025-02-20 15:47:06 -06:00
Henrik Rydgård 91360fee9b Have Native_UpdateScreenScale use the new g_display.Recalculate() 2025-02-20 15:47:02 -06:00
Henrik Rydgård 7d8c7dd70a macOS SDL: Set the metal layer resolution properly, remove DPI hacks.
Fixes #19183

Thanks to @schm1dtmac for the fix.

@shm1dtmac also mentions that this may have issues when moving the window between displays, but this should still be an improvement for most people.
2025-02-20 13:54:50 -06: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 1ea14efcf9 SDL: Use SDL_GetPowerInfo 2025-02-11 10:46:28 -06:00
Henrik Rydgård 61aa231fe2 Buildfix attempt 2025-02-11 10:43:39 -06:00
Henrik Rydgård ee772bb1e2 Refactor querying the battery percentage into a regular sysprop 2025-02-11 10:31:18 -06:00
Henrik Rydgård ab51c2a13b Fix enabling logs 2024-12-16 12:48:48 +01:00
Henrik Rydgård 2b8414b437 Move irrelevant code out of Core.cpp 2024-12-02 13:26:41 +01:00
Henrik Rydgård e6ae256da8 Fix regression with Debug->Stop (Ctrl+W). Delete some duplicate code. 2024-11-29 17:18:34 +01:00
Vishwanath Martur 0a8ded56ae Convert argv[i] to Path type before passing it to File::IsDirectory
* Fix the error by converting `argv[i]` to `Path` type before passing it to `File::IsDirectory`
2024-11-27 07:59:59 +05:30
Vishwanath Martur 052d0c3c35 Fix toast warning in SDL build
Related to #18951

Add toast warning for unpacked ISO directories in SDL build.

* Check if the path to a directory containing an unpacked ISO is passed as a command line argument.
* Display the toast warning "Warning: Playing unpacked games may cause issues." if an unpacked ISO directory is detected.
2024-11-26 18:46:37 +05:30
Henrik Rydgård f0ae048d21 Fix mouse hover in SDL builds 2024-11-06 22:09:53 +01:00
Henrik Rydgård c68c5353b0 SDL mouse input fixes 2024-11-06 12:04:24 +01:00
Henrik Rydgård 758faac445 Be more consistent about thread naming 2024-11-05 12:53:21 +01:00
Henrik Rydgård d3e9398cb3 Split Core_EnableStepping into Core_Break and Core_Resume 2024-11-03 17:53:42 +01:00
Henrik Rydgård cb06ac4af2 MacOS: Fix text input (got broken in #19441, would no longer send CHAR events)
See #19441
2024-10-02 16:21:53 +02:00
Henrik Rydgård f020d1d815 Windows inputbox: Add flags field, delete dupe code, add ability to mask passwords 2024-09-26 10:48:31 +02:00
Henrik Rydgård 99a65f3a0a Implement the fallback path from OpenGL to Vulkan 2024-09-16 12:34:37 +02:00
Henrik Rydgård 41b1165dcd SDL: Make sure SDL_GL_SetSwapInterval() is only called on the GL path 2024-09-16 12:01:51 +02:00
Henrik RydgårdandGitHub d3fca5b8eb Merge pull request #19440 from hrydgard/sdl-gl-fallback-fix
SDL: Fix the fallback path from Vulkan to OpenGL
2024-09-09 21:28:18 +02:00
Henrik Rydgård 6a91af7123 Mac SDL: Remove an annoying popup that happens when holding keys on some SDL versions 2024-09-09 21:11:35 +02:00
Henrik Rydgård f8843b1da1 SDL: Fix the fallback path from Vulkan to OpenGL 2024-09-09 21:03:27 +02:00
Henrik Rydgård d6b4a76e98 Add Copy button for calculated CRCs on game info screen 2024-09-02 22:48:47 +02:00
Henrik Rydgård 96c4ae4457 TimeUtil: Minor cleanup, add precise_sleep() 2024-07-26 11:25:58 +02:00
Henrik RydgårdandGitHub 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 8e1218976d Fix wrong function signature in iOS file picker, also a lifetime issue 2024-06-01 12:31:12 +02:00
Henrik Rydgård 2c50f82b5b SDL: Switch to SDL_WaitEventTimeout instead of SDL_PollEvent when possible.
Fixes #19131
2024-05-28 19:06:00 +02:00
Henrik Rydgård fb8f8ca52f SDL: Allow --xres and --yres to work even if a config file exists 2024-05-20 10:04:11 +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 bf10671a5d SDL: Make rightclicks work just like in Windows
Which is very weirdly, but easier to make it work the same than to clean
it up, that's for later.

This fixes rightclicking games on the main menu.
2024-04-04 23:25:22 +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 cb89dff10f SDL: Remove unnecessary sleeps in the SDLMain loop (we now handle it in NativeFrame) 2024-01-27 11:30:29 +01:00
Henrik Rydgård f77adec8af Unrelated, but return true to SYSPROP_HAS_KEYBOARD in SDL. 2024-01-20 11:23:58 +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 818471a2d7 Mouse wheel: Centralize the sending of KEY_UP events on a timer. 2023-12-17 19:40:59 +01:00
Henrik Rydgård db4993bfdc Implement full support for mouse input on Android
The smoothing algorithm changed a bit now that I centralized that logic
in a way that can work with all backends.
2023-12-10 09:52:19 +01:00
Henrik Rydgård c5469c409a Add specific sysprop for accelerometer 2023-11-06 18:33:01 -06: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 0b15d7d153 Add remaining functionality to the waiting SDL mainloop 2023-09-29 19:35:16 +02:00
Henrik Rydgård b8baff712b Move the menu frame timing to the emuthread, fix hang on change backend 2023-09-29 19:18:48 +02:00
Henrik Rydgård da801033f5 SDL: Use an "EmuThread" for Vulkan, send input event asynchonously from main thread 2023-09-29 19:10:51 +02:00
Henrik Rydgård abdfe74c94 Extract UpdateSDLCursor() 2023-09-29 19:02:34 +02:00