Commit Graph

271 Commits

Author SHA1 Message Date
Henrik Rydgård 875d53a485 Merge pull request #12612 from iota97/sdl-mouse
SDL analog mouse input
2020-03-05 17:23:08 +01:00
iota97 80effb6b68 Let's wait 5 frames 2020-03-05 16:36:26 +01:00
iota97 b8ce079829 Fix wheel up/down and additional mouse button 2020-03-05 15:57:45 +01:00
Unknown W. Brackets cb1b7b1e43 Core: Bring over some file related Switch changes.
Reducing the distance from the Switch port code.
2020-03-03 22:53:03 -08:00
iota97 b0307301e3 Better smoothing and added missing break on MOUSE_WHEEL 2020-03-03 17:17:58 +01:00
iota97 fc1b83fd93 Fixes 2020-02-04 09:54:01 +01:00
iota97 3248d58c4d Switch mode only if needed 2020-02-04 07:47:02 +01:00
iota97 4b28482479 SDL analog mouse input 2020-02-04 05:11:07 +01:00
李通洲 55bb58e13e NativeApp: add System_GetPropertyFloat all the places 2020-02-04 09:20:34 +08:00
Florin9doi c824fabd53 Update macOS system name 2020-01-25 16:54:45 +02:00
Henrik Rydgård 1d6d66ac43 Merge pull request #12582 from Florin9doi/sdl_app_icon
SDL app icon
2020-01-24 15:27:10 +01:00
李通洲 7cd60549dd Initial support for vulkan on macOS ( MoltenVK ) 2020-01-20 14:42:40 +08:00
Florin9doi 24a8077616 SDL app icon 2020-01-17 21:05:59 +02:00
Unknown W. Brackets 9989c51f21 SDL: Ignore audio switch events in first second.
We get new device events right on start, which makes auto switch away from
the preferred / most recent device otherwise.  Fixes #12536.
2020-01-01 07:47:26 -08:00
Unknown W. Brackets a1ee226c39 SDL: Switch audio device when plugged in. 2019-10-07 20:16:20 -07:00
Unknown W. Brackets c30bc4ee7d SDL: Add UI to reset audio device at runtime. 2019-10-07 20:16:19 -07:00
Unknown W. Brackets 8751316051 SDL: Use a configurable output device. 2019-10-07 20:15:25 -07:00
Unknown W. Brackets 141258c366 SDL: Use SDL2 audio API for output. 2019-10-07 20:15:25 -07:00
Conn O'Griofa 18edfefa0a SDL: ensure swap interval is set correctly for SDL2 kmsdrm driver
It appears that SDL2's kmsdrm driver ignores the swap interval setting
if the SDL context has not yet been created. Moving the call to after context
creation allows it to work as expected.

Fixes vsync when running ppsspp in a KMS context using the SDL2 kmsdrm driver
(which is especially useful for Raspberry Pi 4 B, but is also needed for other
systems including Raspberry Pi 3B via firmware KMS & Intel Haswell i965 via
KMS on x64).
2019-10-03 07:40:19 +01:00
Henrik Rydgård 63305d5248 SDL: Add back a couple of lines that should have been copied, not deleted. Thanks [Unknown] 2019-09-01 23:00:53 +02:00
Henrik Rydgård 1d46f40634 SDL/Vulkan: Fix scale problems when maximizing/restoring the window. 2019-09-01 16:22:29 +02:00
Cameron Cawley ba7ea39a1c Move NKCodeFrom*.h into the relevant platform folders 2019-08-06 16:12:19 +01:00
Unknown W. Brackets 54a393386f SDL: Use whatever display SDL gives us for EGL. 2019-07-06 12:33:37 -07:00
Silent bb2ba8086b Improved Show in Folder:
- Not spawning cmd.exe anymore, rather using the same way Chromium does to spawn a shell window with a file focused
- Hid a nonfunctional "Show In Folder" button for UWP builds
2019-05-23 19:59:08 +02:00
Cameron Cawley 427d5f821e SDL: Implement clipboard support 2019-05-15 22:29:40 +01:00
Unknown W. Brackets f042dc1773 SDL: Make it clear Vulkan check is not an error. 2019-03-23 08:32:51 -07:00
Unknown W. Brackets 3e4faea6ad cmake: Automatically disable Wayland for Raspbian.
Also add a shortcut to b.sh since it has its own toolchain file.
2019-03-23 08:25:39 -07:00
Henrik Rydgård 58c240045e Make window resize work with Vulkan. Seems more stable now. 2019-02-23 15:53:05 +01:00
Henrik Rydgård 24510b8187 SDL/Qt: At least quit properly when switching backends 2019-02-23 11:55:34 +01:00
Unknown W. Brackets 556b17503b SDL: Allow PauseWhenMinimized to work.
Essentially fixes #6276, see also #10445 and its fix.
2019-02-18 05:29:38 -08:00
Unknown W. Brackets bba008f162 Qt: Cleanup indentation.
Also some NULL -> nullptr.  No actual code changes.
2019-02-18 05:00:28 -08:00
Henrik Rydgård aa47db846c Merge pull request #11806 from unknownbrackets/sdl-fbdev
SDL: Force fullscreen desktop for USING_FBDEV
2019-02-17 17:14:14 +00:00
Unknown W. Brackets 555a8db335 SDL: Force fullscreen desktop for USING_FBDEV. 2019-02-17 06:27:41 -08:00
Unknown W. Brackets dfc75e8c34 SDL: Prevent mouse capture on macbook trackpad. 2019-02-17 04:54:21 -08:00
orbea 2bbe0d7e65 SDL: Allow toggling fullscreen for GLES2 on desktops.
Fixes https://github.com/hrydgard/ppsspp/issues/11627
2018-12-02 20:03:54 -08:00
AreaScout 57bf9e3048 Add: allow touch screen events on fullscreen 2018-09-16 07:11:15 +00:00
AreaScout 1fb111c2bb Add: Touchscreen event support for SDL2 2018-09-08 07:15:31 +00:00
AreaScout c6c66e7608 Add: Get user-preferred locale from OS (linux only) 2018-09-01 16:43:37 +00:00
Unknown W. Brackets b4496f1975 Core: Move config enums to separate file.
These are a bit strewn about and there are constants that aren't
consistently used, which just adds confusion.
2018-06-23 10:59:18 -07:00
Unknown W. Brackets 34cef82ea3 SDL: Use UpdateScreenScale(). 2018-06-09 16:50:31 -07:00
Unknown W. Brackets a7023ac542 SDL: Move EGL init code into SDLGLGraphicsContext.
It should really be cleaned up, but I'm not sure if EGL_Open can be
moved later and don't currently have a setup to test, so I'm just
cargo culting.
2018-06-05 23:02:50 -07:00
Unknown W. Brackets 78a41980df SDL: Use fullscreen for mobile/GLES.
Also, allow resize for Vulkan outside mobile.

Thanks go to hissingshark.
2018-06-05 20:40:58 -07:00
vnctdj 3f4bfddafc Allow showing version only for SDL 2018-05-09 21:22:47 +02:00
Henrik Rydgård 0130e75852 Merge pull request #10801 from unknownbrackets/sdl-shutdown
Fix shutdown segfault in SDL, fix headless
2018-03-26 21:10:48 +02:00
Unknown W. Brackets 0d10bb8515 SDL: Fix shutdown ordering.
This fixes the segfault on quit.
2018-03-25 14:19:02 -07:00
Unknown W. Brackets 7abf9baf38 SDL: Use wstrings in Windows API calls. 2018-03-25 14:18:31 -07:00
Henrik Rydgård 043ba41b08 PPSSPPSDL: Throttle refresh rate when in menu. Fixes #10445 2018-03-25 15:34:01 +02:00
Unknown W. Brackets cdf378d20c GLES: Prevent race condition on shutdown.
emuThreadState might become STOPPED before the last frame has been run,
which can cause WaitUntilQueueIdle to hang.

It's simpler just to wait until StopThread() is called, since it now is.
This will line up properly with run_.
2018-02-11 11:40:11 -08:00
Unknown W. Brackets a85a88e112 SDL: Apply shutdown race condition fix. 2018-02-10 16:55:50 -08:00
Henrik Rydgård d9af90e016 SDL: Fix issue with vulkan-to-opengl fallback 2018-02-10 09:09:13 +01:00