Ozkan Sezer
5454765a22
replace bool stuff in controller_type.h with SDL_bool.
...
remove bool<->SDL_bool dance in SDL_joystick.c:SDL_IsJoystickSteamController()
after the controller_type.h change.
2018-09-28 17:01:24 +03:00
Ozkan Sezer
fde82e5972
SDL_hidapi_ps4.c: add HAVE_ENDPOINTVOLUME_H check to win32 volume code.
...
this makes it build with my old toolchain with mingw-w64 1.0.10 headers
2018-09-28 14:01:40 +03:00
Sam Lantinga
9aa8a75d26
Fixed building with Xcode 10.0
2018-09-28 01:18:54 -07:00
Sam Lantinga
f964ce03b4
Fixed mingw-w64 build
2018-09-28 01:00:47 -07:00
Sam Lantinga
aa9683bb6f
Added 8bitdo SF 30 PRO controller support for Linux / DInput mode (thanks Frank Hartung)
2018-09-25 19:41:33 -07:00
Ozkan Sezer
870c44bfed
safer this way, just in case..
2018-09-25 09:20:56 +03:00
Sam Lantinga
cd90e2ca58
Fixed bug 4267 - linkage failure with --enable-hidapi because of missing libudev symbols
...
Ozkan Sezer
hidapi dynamic udev initial patch
2018-09-24 16:33:14 -07:00
Sam Lantinga
5febdfcece
Fixed whitespace
2018-09-24 11:49:25 -07:00
Sam Lantinga
d07fe7ad95
Removed button logging message
2018-09-21 09:41:21 -07:00
Sam Lantinga
e8b0859f17
Added missing call to WindowsDeleteString()
2018-09-20 15:55:52 -07:00
Sam Lantinga
600126c90e
Added experimental support for Windows.Gaming.Input
2018-09-19 10:03:40 -07:00
Sam Lantinga
59a2d12cc3
Fixed creating an Android game controller mapping for HIDAPI devices on initialization
2018-09-17 11:35:22 -07:00
Sam Lantinga
6a7b0c27af
Fixed crash launching under Steam on Mac OS X
2018-09-14 12:41:29 -07:00
Ozkan Sezer
33381d3d10
hidapi/SDL_hidapijoystick.c: fix build in C90 mode:
...
src/joystick/hidapi/SDL_hidapijoystick.c: In function 'HIDAPI_InitializeDiscovery':
src/joystick/hidapi/SDL_hidapijoystick.c:281: error: 'true' undeclared (first use in this function)
src/joystick/hidapi/SDL_hidapijoystick.c:281: error: (Each undeclared identifier is reported only once
src/joystick/hidapi/SDL_hidapijoystick.c:281: error: for each function it appears in.)
src/joystick/hidapi/SDL_hidapijoystick.c: In function 'HIDAPI_UpdateDiscovery':
src/joystick/hidapi/SDL_hidapijoystick.c:339: error: 'true' undeclared (first use in this function)
src/joystick/hidapi/SDL_hidapijoystick.c:341: error: ISO C90 forbids mixed declarations and code
2018-09-07 11:03:24 +03:00
Sam Lantinga
864b8f89fa
Merged in community contributed controller mappings from https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt
2018-06-12 01:04:26 -07:00
Sam Lantinga
1205978244
Added common controllers used with Steam Big Picture
...
These are entirely untested
Several USB ids refer to multiple packaged products. In those cases I tried to use the most common name, or a general name (e.g. PS3 Controller), or a completely generic name (e.g. USB gamepad) if it wasn't clear what type of controller it was.
Patches welcome!
2018-06-12 00:18:10 -07:00
Sam Lantinga
db86e7a633
Added support for the PS3 controller driver in PlayStation Now
2018-06-07 10:54:54 -07:00
Sam Lantinga
ff6aebc4a1
Added a new GUID for DS3 controller connected over bluetooth, for both Sony and Shanwan (thanks William!)
2018-05-29 08:03:44 -07:00
Sam Lantinga
b3173d9d3b
Added support for the NVIDIA SHIELD handheld gaming device
2018-05-23 17:15:37 -07:00
Sam Lantinga
361043a5f6
Actually left trigger is motion axis 17 and right trigger is motion axis 18, which will map in that order to SDL axes.
2018-05-23 17:15:33 -07:00
Sam Lantinga
4d9a346927
Added additional supported Android controllers
2018-05-23 16:00:21 -07:00
Sam Lantinga
c07656dbcb
Fixed default mapping for Android controller triggers (they were reversed)
2018-05-23 16:00:19 -07:00
Sam Lantinga
999af8099b
Merged latest changes from Steam Link app
2018-05-18 13:09:30 -07:00
Sam Lantinga
b7228bc51f
Added support for the GameSir G3w
2018-04-11 18:28:03 -07:00
Sam Lantinga
b41b9d34c7
Fixed return value
2018-03-19 14:52:53 -07:00
Sam Lantinga
8e062f6925
Generalized the handling of instantaneous guide button presses so there's a minimum of 100 ms between guide button press and release.
...
This happens with at least the following controllers: All Apple MFI controllers, ASUS Gamepad, XiaoMi Bluetooth Controller
2018-03-19 14:42:51 -07:00
Sam Lantinga
d529b001bc
Added mapping for the ASUS Gamepad removing the guide button, which doesn't generate events even though it's reported in the Android APIs.
2018-03-19 13:16:11 -07:00
Sam Lantinga
129431b4f4
Delay delivery of the pause button release on MFI controllers so it doesn't happen in the same frame as the button press
2018-03-08 16:32:22 -08:00
Sam Lantinga
92847022f5
Added a mapping for the latest firmware for the Xbox One S controller on Android
2018-03-07 18:10:01 -08:00
Sam Lantinga
a2c1d83c02
Include a USB VID/PID for Apple MFI controllers
...
This is just placeholder VID/PID, but allows code that works with VID/PID to identify the MFI controllers easily.
2018-03-07 18:09:58 -08:00
Sam Lantinga
a8ac588549
Added SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened
2018-03-07 13:30:40 -08:00
Sam Lantinga
9e651b6915
Try to dynamically create a default Android game controller mapping based on the buttons and axes on the controller.
...
Include the controller USB VID/PID in the GUID where possible, as we do on other platforms.
2018-03-06 14:51:50 -08:00
Sam Lantinga
003c0dce9c
Use the real controller name for game controllers on iOS and Apple TV
2018-03-02 10:56:21 -08:00
Ethan Lee
6e3d0a133c
Use new XInput mapping for Win10+ (Bugzilla #3960 )
2018-02-21 12:42:30 -05:00
Sam Lantinga
7c36002739
Fixed compiler warning on Android
2018-02-09 16:01:11 -08:00
Sam Lantinga
965c11f38a
Fixed bug 4060 - Alternative DualShock 4 v2 controller GUID
...
ayer.3d
I have a DualShock 4 v2 controller with a GUID that's not in the database. There is an existing GUID that is almost identical, with the only difference that I can tell being the reported version string (mine being 8001, database is 8100).
Existing GUID: 050000004c050000cc09000000810000
New GUID: 050000004c050000cc09000001800000
When connected via USB, the GUID matches an existing entry: 030000004c050000cc09000011810000
2018-02-07 14:07:54 -08:00
Sam Lantinga
73c26c204c
Send Apple TV remote input as key events unless it's opened as a joystick, to match Android behavior.
2018-02-06 16:43:31 -08:00
Sam Lantinga
f59b9c8b13
Replaced SDL_HINT_APPLE_TV_REMOTE_SWIPES_AS_ARROW_KEYS with SDL_HINT_TV_REMOTE_AS_JOYSTICK which controls whether remotes on iOS and Android are interpreted as joysticks (the default) or as return/escape/arrow keys.
2018-02-06 15:03:38 -08:00
Sam Lantinga
2b441ec6c4
SDL Changes to support clean reads
...
CR: saml
2018-02-05 11:40:39 -08:00
Ryan C. Gordon
e99daaf8b5
android: Fixed compiler warning about nested '/*' comments.
2018-01-22 09:45:16 -05:00
Sam Lantinga
e3cc5b2c6b
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Sam Lantinga
fee2469c65
Fixed bug 4005 - Android, SDL_IsGameController() crashes is index is out of range
...
Sylvain
On Android, if you give an invalid index to SDL_IsGameController(), it will crash in SDL_SYS_IsDPAD_DeviceIndex().
2017-12-19 10:48:29 -08:00
Sam Lantinga
e5cfa24182
Fixed default Android D-PAD mapping so the back button is treated as B
2017-12-16 10:40:47 -08:00
Sam Lantinga
255362a3ed
Fixed handling of the Apple TV remote buttons
...
The menu button on the remote is the back button
2017-12-16 10:40:45 -08:00
Sam Lantinga
cc30e1eb3d
Added support for the ASUS TV500BG Android gamepad
2017-12-16 10:40:43 -08:00
Ethan Lee
688bc2858a
Steam Virtual GamePad config for macOS
2017-11-20 13:59:43 -05:00
Sam Lantinga
c954b53830
Fixed bug 3935 - Not find joysticks if android run 24-48 days.
...
Alexander Orefkov
In src\joystick\android\SDL_sysjoystick.c in SDL_SYS_JoystickDetect when SDL_GetTicks return number grater 2147483648 (after 24.85 days uptime) SDL_TICKS_PASSED(SDL_GetTicks(), timeout) return FALSE and Android_JNI_PollInputDevices is never calling.
And in JoystickByDeviceId - when search for newly added joystic - after SDL_SYS_JoystickDetect item not reinitilized, and always stay NULL, cause return NULL instead of added joystick.
2017-11-02 08:48:14 -07:00
Sam Lantinga
a7d2d12c64
Fixed building on non-Android platforms
2017-11-01 10:07:04 -07:00
Sam Lantinga
a90be440e8
Added controller mapping for Android TV remotes
...
Also fixed the back button on the remote exiting the application
2017-11-01 10:06:58 -07:00
Sam Lantinga
556a854438
Fixed compiler warning on iOS
2017-10-16 15:22:40 -07:00