Dean Herbert
3720e254c4
Trim some stray whitespace
2021-07-08 09:27:09 -07:00
Austin Shafer
16e3bfe807
SetDisplayMode: Call XRRSetScreenSize before setting CRTC config
...
X11_SetDisplayMode currently calls X11_XRRSetCrtcConfig alone. This results
in the monitor's viewport getting changed, but the underlying screen dimensions
stay the same.
The spec indicates that RRSetCrtcConfig only changes the crtc mode and has no effect
on the screen dimensions, only mentioning that the new crtc must fit entirely within the
screen size. For the size to change, RRSetScreenSize also needs to be called.
This affects Metro Exodus on Linux, when changing the resolution in the in-game settings
Metro gets stuck in a loop waiting for the size of its vulkan surface to change. Because
XRRSetScreenSize is not called the screen size is never changed, the vulkan surface dimensions
do not change, and Metro hangs forever watching for a surface size update that will
never come.
This change disables the CRTC, calls XRRSetScreenSize, and then updates the
CRTC configuration. This fixes changing the resolution from the Metro settings.
Tested with:
Metro Exodus, Portal 2
2021-07-08 08:41:29 -07:00
Sam Lantinga
4a20dd3e54
Removed unnecessary comment, the mic button is in byte 16 on all firmware versions
2021-07-08 07:38:18 -07:00
Sam Lantinga
46f19c311d
Implemented mouse relative mode for iOS 14.1 and newer
2021-07-08 07:23:29 -07:00
Sam Lantinga
430bbcb87f
Added HIDAPI support for the Amazon Luna Controller connected over USB in DirectInput mode
2021-07-07 09:49:33 -07:00
Sam Lantinga
863f566941
Fixed reading thumbstick axes and mic button on the Amazon Luna Controller firmware version 305164320
2021-07-07 08:55:16 -07:00
Dimitriy Ryazantcev
17ed8d8085
Added HIDAPI backend for Amazon Luna Controller Model T28B69 connected via Bluetooth LE (VID:0171, PID:0419).
...
To enter Bluetooth pairing mode hold B and Action (button with circle) buttons for 3 seconds.
It works via usual HIDAPI if special filter driver is not installed:
https://www.amazon.com/gp/help/customer/display.html?nodeId=GZCT4CTFHXLHEB9T
With that driver installed it mimics Xbox One controller and works via XInput under Windows.
Under DInput this controller is not usable at all.
2021-07-07 08:31:12 -07:00
Sam Lantinga
00d67620da
Added the SteelSeries manufacturer to the Nimbus+ entry on macOS
2021-07-06 11:32:11 -07:00
Sam Lantinga
24e836b0db
Added controller mapping for the Nimbus+ controller on macOS when MFi support is not available
2021-07-06 10:00:09 -07:00
Ivan Epifanov
0994a75879
Don't hardcode message length
2021-07-01 15:14:49 -07:00
Ivan Epifanov
3b6e999244
Vita: remove unused variable and allow Razor perf analysis
2021-07-01 15:14:49 -07:00
Ivan Epifanov
656eb7df35
Vite: return system installed memory
2021-07-01 15:14:49 -07:00
Ivan Epifanov
b55ee12f69
Vita: fix clip rectangle
2021-07-01 15:14:49 -07:00
Ivan Epifanov
e41d3e617e
VIta: fix render clearing
2021-07-01 15:14:49 -07:00
Ivan Epifanov
6b12280510
Vita: proper syntax
2021-07-01 15:14:49 -07:00
Ivan Epifanov
32deb6f70c
Vita: fix point size
2021-07-01 15:14:49 -07:00
Ivan Epifanov
9d4527193d
Vita: append messagebox title
2021-07-01 15:14:49 -07:00
Dimitriy Ryazantcev
39302c9214
Add Steam Virtual Gamepad and Xbox 360 Wired Controller defines instead of magic values
...
See https://partner.steamgames.com/doc/features/steam_controller/steam_input_gamepad_emulation_bestpractices for details on what is Steam Virtual Gamepad.
2021-06-30 08:48:13 -07:00
Sam Lantinga
0c4ac33a09
Added support for the Razer Wolverine Tournament Edition controller
2021-06-28 14:31:27 -07:00
Joshua Ashton
ca383599b5
Fix Anne Pro II keyboard showing up as a joystick
...
Having used this for a couple years, I can definitely confirm that it is not a joystick.
2021-06-26 21:23:26 -07:00
Joshua Ashton
c90bd3bf79
Add missing PS5 DualSense GUIDs
...
Fixes my DualSense controller not being recognised as a SDL GameController which breaks Steam Input filtering causing SDL to fight for input.
2021-06-26 21:21:46 -07:00
Sam Lantinga
205b951b46
SDL_DINPUT_JoystickPresent() needs to do the full device enumeration
...
It is called from WGI before the normal joystick detection has been run, so it needs to actually enumerate currently connected devices.
We can skip the logic checking for other drivers also supporting this device, because that logic is duplicated from the call site.
2021-06-25 14:20:08 -07:00
Sam Lantinga
ae6d9e343b
Correcting the name of the Amazon Luna Controller
2021-06-25 11:09:46 -07:00
cpasjuste
c29f5893c8
switch: cleanup joystick interface
2021-06-25 14:08:47 +02:00
Sam Lantinga
5042ab6f24
Added Linux and macOS mappings for the DirectInput mode of the Amazon Luna Controller
2021-06-24 18:09:06 -07:00
Sam Lantinga
5b051459ed
Fixed warnings on Windows
2021-06-24 18:09:04 -07:00
Sam Lantinga
99700a5c52
SDL: add Windows mappings for Luna controllers for USB DirectInput mode and BT. Note: the triggers do not seem to work in BT mode.
2021-06-24 18:09:01 -07:00
Ozkan Sezer
33b84c8d15
s/memcmp/SDL_memcmp/ for conistency
2021-06-24 23:10:56 +03:00
Ethan Lee
56b77b12bc
cocoa: Implement FlashWindow
2021-06-24 13:08:26 -07:00
scribam
c2e8a791bb
SDL_windowsevents: add support for multiple mice
2021-06-24 12:15:54 -07:00
Cameron Gutman
7948c16df2
Pump events each time through the loop in SDL_WaitEventTimeout_Device()
...
Not only is it more efficient to batch process pending events, it is
necessary for correctness with the Win32 backend. WIN_PumpEvents() runs
periodic updates of the cursor clip region and disambiguation of
left and right shift keys in addition to standard event processing.
2021-06-24 12:14:17 -07:00
Cameron Gutman
105de64c2d
Only queue one wakeup event per wait
...
Queuing more than one can lead to a spurious wakeup on the next wait.
2021-06-24 12:14:17 -07:00
Anthony Pesch
c262569cd8
kmsdrm: fix KMSDRM_SetDisplayMode being called for the default desktop mode doing nothing
2021-06-24 12:12:29 -07:00
Anthony Pesch
98bda39186
kmsdrm: sync the display's current mode with what's set in KMSDRM_CreateSurfaces
2021-06-24 12:12:29 -07:00
Anthony Pesch
d031a24e00
kmsdrm: defer surface recreation inside of KMSDRM_SetWindowSize and
...
KMSDRM_SetWindowFullscreen as is done in KMSDRM_SetWindowDisplayMode
2021-06-24 12:12:29 -07:00
Anthony Pesch
5a296e2589
kmsdrm: avoid overriding the mode requested by SDL_SetWindowDisplayMode
...
when recreating surfaces
2021-06-24 12:12:29 -07:00
cpasjuste
84f61daaab
switch: fix power interface
2021-06-24 14:32:27 +02:00
cpasjuste
8249883616
switch: use getcwd for SDL_GetPrefPath
2021-06-24 13:55:22 +02:00
cpasjuste
a10e1c5b40
switch: fix wrong keyboard keys events
2021-06-24 13:42:55 +02:00
cpasjuste
177b651fe6
switch: update touch interface to new hid api
2021-06-24 13:31:47 +02:00
cpasjuste
75258715b8
switch: fix mouse interface
2021-06-24 12:54:59 +02:00
cpasjuste
2157021aa3
switch: update keyboard interface to new hid api
2021-06-24 12:37:46 +02:00
Sam Lantinga
814285d6e3
Workaround for crash on Apple Mac M1 hardware
2021-06-23 09:19:02 -07:00
cpasjuste
b4f02bcaca
switch: use pthreads
2021-06-22 14:33:02 +02:00
cpasjuste
4eb5d77750
switch: add power support
2021-06-22 14:28:56 +02:00
cpasjuste
e3a6834904
switch: add filesystem support
2021-06-22 14:26:31 +02:00
cpasjuste
94b2c02e02
switch: add cmake support
...
switch: update for latest sdl2 changes
switch: update for latest libnx hid changes
2021-06-22 14:21:29 +02:00
Sam Lantinga
41fab8532d
ControllerList: set the default deadzone for Ps5 controller back to same one as Xbox controllers. Too many users complained about drift.
2021-06-18 18:10:24 -07:00
Sam Lantinga
a8b28939a6
ControllerList: add more Xbox controllers from minidumps
2021-06-18 18:10:23 -07:00
Sam Lantinga
08eff56a5b
ControllerList: add Brooks Mars controller to PS4 controller list
2021-06-18 18:10:22 -07:00