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
Henrik Rydgård
4d6c0cfb32
Buildfix
2018-02-08 01:11:51 +01:00
Henrik Rydgård
ae19c48138
Cleanup the Windows thread stuff to work like the other platforms. Not quite perfect yet.
2018-02-07 16:00:29 +01:00
Henrik Rydgård
b3a09791b1
SDL: Fix emuthread management to exit cleanly without hanging.
2018-02-07 12:22:19 +01:00
Henrik Rydgård
020eb9d86c
Fix further memory leaks
2018-02-04 13:42:04 +01:00
Henrik Rydgård
79d1610148
Move SDLGLGraphicsContext.h to the correct location. Minor cleanup
2018-02-04 13:42:04 +01:00
Henrik Rydgård
99386da01e
Minor cleanups
2018-02-04 13:42:04 +01:00
Henrik Rydgård
85446d6c51
Split the SDL graphics contexts into their own files.
2018-02-04 13:42:04 +01:00
Henrik Rydgård
c16e397fc6
SDL: NativeInitGraphics/NativeShutdownGraphics should run on the emu thread.
2018-02-04 13:42:04 +01:00
Henrik Rydgård
583c20991f
Qt: Some cleanup and fixes. Still not working correctly with gl-render-manager.
2018-02-04 13:42:04 +01:00
Unknown W. Brackets and Henrik Rydgård
56a18907dd
SDL: Oops, only start the emu thread for GLES.
...
Probably would've caused issues (at least weird vsync) for Vulkan.
2018-01-27 15:10:17 +01:00
Unknown W. Brackets and Henrik Rydgård
062566b67c
Core: Set thread names when possible.
...
This doesn't seem to be working for lldb, though.
2018-01-27 15:10:17 +01:00
Unknown W. Brackets and Henrik Rydgård
59904c316b
SDL: Allow running GL on thread.
...
Tested on a Mac.
2018-01-27 15:10:17 +01:00
Unknown W. Brackets
766b40aad8
GPU: Reset GPUBackend on graphics init.
...
This way, when using a port that doesn't support Vulkan, it doesn't just
silently use upside down GL, etc.
2017-12-26 16:02:55 -08:00
Unknown W. Brackets
d6da758ed3
GPU: Remove duplicate BACKEND constants.
2017-12-26 15:55:24 -08:00
Greg V
f3783bdb44
Add support for Vulkan on Wayland
2017-12-26 16:09:27 +03:00
Jan Beich
d4984ab991
SDL: unbreak on more non-Vulkan platforms
...
SDL/SDLMain.cpp:160:2: error: unknown type name 'SDL_SysWMinfo'; did you mean 'SDL_SysWMmsg'?
SDL_SysWMinfo sysInfo; //Will hold our Window information
^~~~~~~~~~~~~
SDL_SysWMmsg
SDL/SDLMain.cpp:433:2: error: unknown type name 'SDL_SysWMinfo'; did you mean 'SDL_SysWMmsg'?
SDL_SysWMinfo sys_info{};
^~~~~~~~~~~~~
SDL_SysWMmsg
SDL/SDLMain.cpp:440:2: warning: expression result unused [-Wunused-value]
Window x11_window = sys_info.info.x11.window;
^~~~~~
2017-12-21 21:31:26 +00:00
Henrik Rydgård
fe45a059b5
SDL: Fix OpenGL init again. Fixes #10424
2017-12-21 17:36:00 +01:00
Henrik Rydgård
f73ec4608e
Build Vulkan on all platforms, won't be used if not supported.
2017-12-21 14:13:55 +01:00
Henrik Rydgård
9007abddbf
Get Vulkan going on Linux
2017-12-21 11:02:11 +01:00
Henrik Rydgård
7f758d52dc
Statically link a vulkan loader on Linux. Use to to init vulkan on X11. Unfortunately, it's broken.
2017-12-21 11:02:11 +01:00
Henrik Rydgård
6d6ad3ed14
Cleanups in PCMain.cpp
2017-12-21 10:52:48 +01:00
Henrik Rydgård
ea387b2a48
WIP vulkan on linux stuff
2017-12-21 10:48:00 +01:00
Conn O'Griofa
d67d201681
SDL: really try lower GL profiles & add GLES context support
...
* When compiled with USING_GLES2, attempt to use only valid ES context
versions.
* Ensure that lower profiles are attempted correctly rather than
prematurely returning from the function after the first failure.
Needed for Raspberry Pi to successfully launch.
2017-12-20 16:28:53 +00:00
Henrik Rydgård
740d0504ad
Move QtMain.cpp and PCMain.cpp to more sensible locations. Native isn't standalone anymore...
2017-12-19 18:04:26 +01:00
Neil Munday
ac0052c6af
Added default control pad mapping for control pads not found in SDL's game controller database file.
2017-10-03 22:08:29 +01:00
Henrik Rydgård
4491c7e2ca
Quick hack to enable analog stick sensitivity on non-windows platforms.
...
See #8028
2017-05-18 15:15:10 +02:00
Henrik Rydgård
1b699363ca
Load SDL's gamecontrollerdb from assets directory, not relative to exe. Fixes #9460 .
...
Also remove support for that env variable.
2017-03-21 15:54:39 +01:00
ASL97
14187f9311
Allow background joystick input on SDL
2017-02-23 05:18:21 +08:00
zhyk
0629054783
Do not create thread to handle SDL joystick events in Qt build.
...
Caused crashes on MacOS Sierra (10.12).
2017-02-01 14:37:36 +08:00
Henrik Rydgård and GitHub
052660bc8c
Merge pull request #9260 from neilmunday/master
...
Added ability for the user to override the location of the SDL game controller db file
2017-01-31 08:52:55 +01:00
Neil Munday
b058b987ad
Added ability for the user to override the location of the SDL game controller db file.
2017-01-30 20:26:24 +00:00
Bigpet
d6b8123662
add left and right thumbstick button handling in SDL gamepad.
2016-11-20 18:50:06 +01:00
Neil Munday
182b9e0fda
Various improvements including finding the assets directory properly.
2016-09-20 21:50:45 +01:00
Neil Munday
e4a0a3cea3
Updated SDL2 game controller mods following feedback from PPSSPP authors.
2016-09-20 00:28:28 +01:00
Neil Munday
db2cc49e0d
Modified SDL2 code to make full use of SDL2's Game Controller API.
2016-09-18 23:23:36 +01:00
Neil Munday
67425d7d47
Initial attempt at adding SDL's game controller database to PPSSPP.
2016-09-18 00:33:28 +01:00
Kelly Youngblood
5adaa12260
Adds auto-detection for PS3 cocntroller.
2016-09-03 21:14:44 -05:00
Kelly Youngblood
06d594b3ff
Code cleanup
2016-09-03 00:20:18 -05:00
Kelly Youngblood
7d191ccc11
Adds --PS3 flag for PS3 controllr support on SDL.
2016-09-03 00:15:25 -05:00
chrisbrasington
988e082478
fix indentation
2015-12-21 16:27:33 -07:00
chrisbrasington
ea809425b6
split SDLJoyButtonMap for MacOSX and linux. Mapping in else statement was tested on linux with a X360 and wii-u pro controller
2015-12-21 15:48:22 -07:00
chrisbrasington
cbda8cf957
adds missing button for wii-u pro gamepad, right-DPAD. NKCODEs are still mismatched in linux (360 controller and wii-u pro gamepad), but they were not changed to so that a user's controls.ini will load correctly.
2015-12-21 15:03:14 -07:00
oscdis
8f11555226
Insert a space between parens and curlies.
2015-06-28 16:44:48 +09:00
oscdis
76e9a03f5b
Joystick hot-plugging for SDL.
2015-06-23 23:13:23 +09:00
Henrik Rydgård
e6af3cf2f4
Try workaround for SDL joystick dpad problems as mentioned in #7428
2015-02-05 09:49:31 +01:00
Daniel Nagel
afefac86ad
Update to SDL2
2014-09-01 16:35:19 +02:00
Sacha
73aa17a2de
Misc fixes. CMake: Don't compile neon on armv6 (rpi). Qt: Correct path for lrelease. SDL: Fix a warning.
2014-06-18 03:28:33 +10:00
Peter Tissen
b7eeaf412e
multiple SDL joystick support, initial commit untested
2014-05-31 02:35:10 +02:00