Commit Graph
2872 Commits
Author SHA1 Message Date
Henrik Rydgård 79e0b86651 When disconnecting a pad, reset the axes too, not just the buttons. 2025-07-20 11:20:40 +02:00
Henrik Rydgård 152098e3f0 Windows: Add basic native support for Switch Pro controllers 2025-07-19 11:39:23 +02:00
Henrik Rydgård 9137eedb7b Windows/Vulkan: Correctly handle minimizing and restoring the window
We can't create a swapchain in this case but we still want emulation to
keep running. So we ditch the last renderpass in VulkanQueueRunner but
run all the rest (if PauseWhenMinimized isn't set).

Now works without any validation errors or hangs.
2025-07-18 20:01:48 +02:00
Henrik Rydgård 06adf8e4eb Dualsense/dualshock: Control the LEDs
Set to blue on connect, turn them off on exit.

Makes it more obvious that these pads are connected and working.
2025-07-11 15:39:24 +02:00
Henrik Rydgård 92b7f0dba1 WASAPI: Improve logging and error handling.
Hopefully will finally fix #20540
2025-07-11 13:53:27 +02:00
Henrik Rydgård a00c857b4b WASAPI: Try to ask the device for a stereo format if it has too many channels.
Also, add support for 16-bit audio (should be rare)
2025-07-11 09:41:08 +02:00
Henrik Rydgård a1cafa4301 Merge pull request #20613 from oltolm/win32
mingw64: fix Windows build
2025-07-10 23:05:57 +02:00
oltolm 43b7e5ee29 mingw64: fix Windows build 2025-07-10 22:48:44 +02:00
Henrik Rydgård f44b4e31e6 Merge pull request #20281 from NABN00B/atlas-symbols
Add handpicked symbols group to atlastool
2025-07-10 22:43:36 +02:00
Henrik Rydgård af883e8059 Merge pull request #20609 from oltolm/comptr
use ComPtr in WASAPIContext
2025-07-10 22:40:16 +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
oltolm 11d8f85bf4 use ComPtr in WASAPIContext 2025-07-09 22:54:58 +02:00
Henrik Rydgård 42b46e2098 If RetroAchievements' "Hardcore mode" is enabled, prevent debugger use
Fixes an easy way you could access the debugger windows.
2025-07-09 16:25:24 +02:00
Henrik Rydgård 5e55090e67 Windows: Fix a hang during shutdown, could leave behind a running process. 2025-07-09 12:13:18 +02:00
Henrik Rydgård 5a300120ab Windows: Remove the "inner" window
For historical reasons, we've actually displayed inside an inner window
completely covering the client area of the main window. This seems to be
entirely unnecessary so I'm just getting rid of it and using the main
window directly for everything.

Not expecting any noticable change, just a nice cleanup.
2025-07-09 11:32:18 +02:00
Henrik Rydgård 05d6b63f1c Merge pull request #20605 from hrydgard/more-minor-fixes
Fix strange edge case when switching to auto-frameskip from non-buffered rendering
2025-07-08 22:36:37 +02:00
Henrik Rydgård 2cebaa7509 Win32: Paint the window black earlier during startup 2025-07-08 15:08:19 +02:00
Henrik Rydgård e4c6f4e530 Merge pull request #20604 from hrydgard/minor-fixes
Fix some small UI regressions
2025-07-08 14:43:31 +02:00
Henrik Rydgård eadd32e00a Keycodes: Restore the old PrintScreen keymapping, fixing mistake from #19656
Fixes #20588
2025-07-08 14:03:04 +02:00
Henrik Rydgård a32c1a4671 Poll for new gamepads a bit less often, reduce logspam in debug mode 2025-07-08 11:03:17 +02:00
Henrik Rydgård fc09669ba7 Add DualSense support. Remove trying to support bluetooth devices (not reliable without more work) 2025-07-03 11:11:34 +02:00
Henrik Rydgård 2e1fdc4c78 Avoid sleeping the input thread if we don't have to. Improves latency slightly. Also fix mappings. 2025-07-03 09:41:03 +02:00
Henrik Rydgård 6b0e9b0989 Implement initial native DualShock/DualSense support 2025-07-03 09:41:03 +02:00
Nab 53ac90e824 Update buildatlas shell scripts 2025-07-02 20:26:22 +00:00
Henrik Rydgård f6aa92d635 More refactoring 2025-06-28 14:15:42 +02:00
Henrik Rydgård c311cb9fdf Delete WindowsHost.cpp/h 2025-06-28 14:02:12 +02:00
Henrik Rydgård 66785a724b Collect DInput devices in a meta device 2025-06-28 13:57:04 +02:00
oltolm 41e325475c fix mingw64 build and Clang warnings 2025-06-22 12:30:13 +02:00
Henrik Rydgård 5d98e02d9b Add more info about the output audio stream to System Information.
Plus another channel number fix
2025-06-19 01:20:16 +02:00
Henrik Rydgård 0502d79c99 Remove the return value from NativeMix, correct mixing with other channel numbers than 2 2025-06-18 23:48:00 +02:00
Henrik Rydgård 6271af52e9 Add the new low-latency WASAPI backend. Implement audio device selection on Windows 2025-06-16 22:40:13 +02:00
Henrik Rydgård 61d6c95f0c More refactoring. Add the AudioBackend interface 2025-06-16 21:55:32 +02:00
Henrik Rydgård 990b74cc17 More audio refactoring 2025-06-16 18:48:53 +02:00
Henrik Rydgård a721a0b6dd Minor refactor 2025-06-16 18:29:38 +02:00
Henrik Rydgård db1b87aad1 Remove DirectSound support
Since we no longer support pre-Vista Windows, DirectSound support is no
longer needed. WASAPI is always going to be best.

Soon I'll upgrade our WASAPI backend with a new low-latency mode.
2025-06-16 14:50:48 +02:00
Henrik Rydgård aea6df0ca4 Fix string bug in backend change alerts 2025-06-14 08:44:17 +02:00
Henrik Rydgård b75541b23f Disable the Cache full ISO in RAM feature on 32-bit builds 2025-06-13 20:59:22 +02:00
Henrik Rydgård ddc8093b34 RetroAchievements: Better error messages on login, don't delete the username on failure 2025-06-13 19:09:35 +02:00
Henrik Rydgård f9c0c41074 Fix flickering UI state while debugging, breaking the Win32 debugger 2025-06-12 10:20:25 +02:00
Henrik Rydgård ad00c20660 Windows: Remove ARM32 configurations from project files.
These will never be supported again (and never really were, only used
for Windows Phone testing a long time ago)
2025-06-11 08:55:13 +02:00
Henrik Rydgård fa04337654 On Windows 11, start defaulting to Vulkan. 2025-06-10 21:24:31 +02:00
Henrik Rydgård fd59e7a2ef Don't copy the d3dcompiler dll to distributions 2025-06-10 17:06:34 +02:00
Henrik Rydgård 6cfea96e58 Remove D3D9 support, to make future changes easier 2025-06-10 15:07:16 +02:00
Henrik Rydgård b0ccfbfe5d Fix exit crash on Windows ARM64 with D3D11 (and probably also x64 Windows, but couldn't repro that) 2025-06-09 17:26:29 +02:00
Henrik Rydgård 258a3ae6db Fix image file browsing on Android again. Fixes #20476 2025-06-08 19:31:05 +02:00
oltolm c5d82e8c6d mingw-w64: remove dependency on ucrtbased 2025-05-31 18:26:38 +02: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 1056547c70 Windows: Don't freeze the UI thread for a sec while launching a URL 2025-05-20 00:19:06 +02:00
Henrik Rydgård 30e0834c0a Remove the legacy CPU test runner from developer tools 2025-05-19 10:47:33 +02:00
Henrik Rydgård 23414ca118 Merge pull request #20363 from hrydgard/misc-fixes
Remove redundant setting "Show on-screen messages"
2025-05-18 21:50:48 +02:00