Ryan Speets
28487d49c2
Emscripten: Fixed SDL_SYSTEM_CURSOR_SIZEALL
2018-08-18 12:30:04 +01:00
Ozkan Sezer
f3984d8f40
SDL_hidapi_ps4.c: define NTDDI_VISTA / _WIN32_WINNT_VISTA if not defined
...
it still needs a Vista or newer Platform SDK to build, though.
2018-08-16 11:01:02 +03:00
Sam Lantinga
78df4310c2
Use a single hint for both Xbox 360 and Xbox One controllers, since they are often the same driver.
2018-08-15 23:35:54 -07:00
Sam Lantinga
bd3cb01bc5
Use the HIDAPI driver for Xbox controllers on Windows, and determine the XInput mapping at runtime for extended functionality like rumble and guide button.
2018-08-15 23:14:45 -07:00
Sam Lantinga
650065c296
Use a unified name list for Xbox 360 and Xbox One controllers for drivers that can handle both
2018-08-15 23:14:43 -07:00
Sam Lantinga
817489abbf
Added Windows Xbox controller state packet handling, for completeness.
2018-08-15 19:53:36 -07:00
Sam Lantinga
e36af84e04
Fixed input from the Steam Virtual Gamepad on Mac OS X
2018-08-15 19:53:34 -07:00
Sam Lantinga
fc31c30fc7
Use SDL specific window class to avoid conflicting with Steam
2018-08-15 19:53:31 -07:00
Sam Lantinga
cbf66c4939
Catch device removal as well as device arrival on Windows
2018-08-15 19:53:30 -07:00
Sam Lantinga
87dc0a72ab
Turned off debug messages
2018-08-15 19:53:28 -07:00
Sam Lantinga
142d9c78c3
Remove the HIDAPI device if we get a read error from it
...
This fixes detecting PS4 controller disconnect on Mac OS X, where there isn't any device removed notification
2018-08-15 19:53:26 -07:00
Sam Lantinga
e356abff7b
Fixed Mac OS X build
2018-08-15 19:53:24 -07:00
Sam Lantinga
4e722009a6
Polling hid_enumerate() every 3 seconds causes freezes and stutters on some USB audio devices and mice.
...
We'll only enumerate devices when we get notification that the system devices have changed
2018-08-15 19:53:22 -07:00
Ryan C. Gordon
5392bd02ae
libm: one more static analysis fix.
2018-08-10 15:22:02 -04:00
Ryan C. Gordon
f0759d0233
haiku: Patched to compile with new joystick interfaces.
2018-08-10 15:04:08 -04:00
Ryan C. Gordon
ec9e4e7df7
bsd: Patched to compile.
...
(I think.)
2018-08-10 14:54:26 -04:00
Ryan C. Gordon
4866063a65
bsd: Update joystick code for new interfaces.
...
(this is an untested push to see if buildbot likes it.)
2018-08-10 14:42:40 -04:00
Ryan C. Gordon
de4e0e2f84
emscripten: Patched to compile with new joystick interfaces.
2018-08-10 14:32:30 -04:00
Ryan C. Gordon
e391a269c1
joystick: define inline to SDL_INLINE
2018-08-10 14:10:47 -04:00
Ryan C. Gordon
cb41f10d60
joystick: #if 0'd out some things that aren't currently used.
...
Fixes some compiler warnings.
2018-08-10 14:09:44 -04:00
Ozkan Sezer
5c483cdfd5
SDL_hidapi_ps4.c: lowercase windows header names.
2018-08-10 11:50:55 +03:00
Ozkan Sezer
cddde8ff05
chmod -x Android.mk
2018-08-10 11:50:01 +03:00
Sam Lantinga
1083673899
Re-enabled the HIDAPI joystick driver on Windows and Mac OS X
2018-08-09 22:53:43 -07:00
Sam Lantinga
f06a191048
Added missing files from previous commits
2018-08-09 16:05:48 -07:00
Sam Lantinga
3ee8baee46
Added notes that this code was contributed by Valve
2018-08-09 16:04:45 -07:00
Sam Lantinga
1d18743335
There's no controller that's supported by both XInput and HIDAPI
2018-08-09 16:04:34 -07:00
Sam Lantinga
efdea54cd7
Don't update the device list for devices we know aren't supported
...
This should reduce HID enumeration (hitting the USB bus) if for some reason we're getting spammed with false device insert/removal events
2018-08-09 16:04:30 -07:00
Sam Lantinga
02498210e3
The MINIX NEO-U1 is now being reported as Android TV
2018-08-09 16:04:25 -07:00
Sam Lantinga
08513a7686
Sam Lantinga <slouken@libsdl.org> 2018-08-06 13:00 -0700
...
Backed out changeset 448e9f627e71
http://hg.libsdl.org/SDL/rev/e1f4191461a0
2018-08-09 16:04:21 -07:00
Sam Lantinga
d57310bf62
Sam Lantinga <slouken@libsdl.org> 2018-08-06 11:58 -0700
...
Removed mapping for VID/PID 0x0079/0x0006, which is a generic PCB used in many different devices
http://hg.libsdl.org/SDL/rev/448e9f627e71
2018-08-09 16:04:18 -07:00
Sam Lantinga
d2fff7b1d3
SDL: disable HIDAPI in SDL on Windows/Mac.
2018-08-09 16:03:55 -07:00
Sam Lantinga
f5908635ae
Worked around bug with Sony PS Now PS3 controller where DirectInput polling will continue to return success after the controller is unplugged.
...
The code is now reliant on SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() being called correctly when devices are added or removed on Windows
2018-08-09 16:03:50 -07:00
Sam Lantinga
59594ecdba
Fixed Windows build
2018-08-09 16:03:29 -07:00
Sam Lantinga
a7f26f9e6c
Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and Nintendo Switch Pro controller support across platforms.
...
Added SDL_GameControllerRumble() and SDL_JoystickRumble() for simple force feedback outside of the SDL haptics API
2018-08-09 16:00:17 -07:00
Ryan C. Gordon
8d4bb4e555
libm: Don't let Visual Studio generate an implicit memset() call.
2018-08-08 15:39:20 -04:00
Ryan C. Gordon
cea9c89bcc
backout INFINITY change...of course Visual Studio doesn't have it.
2018-08-08 12:36:54 -04:00
Ryan C. Gordon
e78aec013e
e_exp: One more compiler warning.
2018-08-08 12:19:01 -04:00
Ryan C. Gordon
9e71f22e62
libm: Fixed all static analysis warnings.
2018-08-08 12:13:56 -04:00
Ryan C. Gordon
94593b7c22
e_exp: Fixed compiler warning on Visual Studio.
2018-08-08 10:26:22 -04:00
Ryan C. Gordon
e4dacaed2e
haiku: Rename internal functions from BE_* to HAIKU_*
...
Fixes Bugzilla #2349 .
2018-08-07 18:07:11 -04:00
Ryan C. Gordon
8e9c38225f
configure: Make wayland sources depend on generated headers.
...
Otherwise occasionally the sources will try to compile before the headers it
needs are generated.
Fixes Bugzilla #3977 .
2018-08-07 17:28:07 -04:00
Ryan C. Gordon
7cba05788e
evdev: On sudden termination, make sure keyboard isn't lost (thanks, Tadek!)
...
"In release 2.0.6, when Linux evdev keyboard support has been moved to a
separate source file, a feature was added to disable normal keyboard event
processing to prevent "spilling" keystrokes to background virtual console.
This feature has one unpleasant side effect: if application fails to call
`SDL_Exit` before termination or crashes with fatal signal, console is left
in unusable state with keyboard not working and no possibility to switch
virtual console. If user has a chance, he can login remotely and restore
keyboard with `kbd_mode`, otherwise the only option is to reboot the machine.
This patch fixes that problem by intercepting fatal signals (with `sigaction`)
and process termination (with `atexit`), to restore keyboard state, if it
wasn't properly restored with `SDL_Exit`.
The function registered with `atexit` also restores original signal handlers,
to prevent leaving invalid handlers after SDL library is unloaded, if it was
loaded dynamically with `dlopen`.
No signal handlers or `atexit` function are installed if SDL boolean hint
`SDL_HINT_NO_SIGNAL_HANDLERS` is `SDL_TRUE`.
Additionally, if environment variable `SDL_INPUT_LINUX_KEEP_KBD` exists,
keyboard initialization function completely skips disabling keyboard. This
can be useful for debugging."
Fixes Bugzilla #4193 .
2018-08-07 16:56:46 -04:00
Ryan C. Gordon
2b14f5d3b9
alsa: optionally run entire pipeline non-blocking.
2018-08-07 16:49:18 -04:00
Ryan C. Gordon
f1ce18e2bd
audio: Deal with device shutdown more carefully.
...
This would cause problems in various ways, but specifically triggers an
assert when you close a WASAPI capture device in an app running over RDP.
Related to (but not the actual bug) in Bugzilla #3924 .
2018-08-07 13:04:15 -04:00
Mai Lavelle
c230db0d4a
haptic: Fix initial detection of haptic devices on Linux system
...
SDL_UDEV_Scan must be called during SDL_SYS_HapticInit to ensure devices
outside of the 0-31 range are added to the list of haptic devices.
Fixes Bugzilla #3923 .
2018-08-07 12:06:31 -04:00
Sam Lantinga
b6c62917ac
Backed out changeset 448e9f627e71
...
It turns out the mapping is correct, just the name was confusing
2018-08-06 13:00:11 -07:00
Sam Lantinga
4aeaa39ea1
Removed mapping for VID/PID 0x0079/0x0006, which is a generic PCB used in many different devices
...
Different device with same vid/pic that is kind of a Saitek shape:
https://www.trust.com/en/product/17416-gxt-24-runa-compact-gamepad
n64 with same ID
https://bbs.archlinux.org/viewtopic.php?id=163488
PS shaped with numbers for buttons
https://pineight.com/mw/index.php?title=USB_game_controller#DragonRise_Inc._Generic_USB_Joystick
fightstick with same vid/pid
https://retropie.org.uk/forum/topic/7594/bartop-2-player-zero-delay-encoders-not-working
2018-08-06 11:58:08 -07:00
Ozkan Sezer
ca308172db
SDL_expf: return SDL_exp() instead of SDL_uclibc_exp() for consistency.
2018-08-05 10:01:01 +03:00
Ethan Lee
8c5c6c609f
SDL_exp
2018-08-04 11:52:46 -04:00
Ryan C. Gordon
4e4f2996d1
cmake: use WINDOWS instead of WIN32.
2018-08-02 16:21:43 -04:00