Sam Lantinga
57cbec1095
Added controller mappings for Xbox 360, PS4, and PS5 controllers on OpenBSD
...
Removed the axis flipping hack for Xbox controllers which would actually apply to any controller with a full 16-bit range.
Fixes https://github.com/libsdl-org/SDL/issues/6143
2022-08-28 23:18:40 -07:00
Sam Lantinga
761b9d1e49
Use the HID usage for the button as the button number
2022-08-28 22:33:17 -07:00
Sam Lantinga
a9d3935a84
Improved code to get the name and guid for joysticks on OpenBSD and NetBSD
...
Also dynamically allocate joysticks to reduce static memory usage
2022-08-28 18:20:54 -07:00
Sam Lantinga
4a800ae149
Created a consolidated define enabling BSD gameport joystick support
2022-08-28 18:20:54 -07:00
Sam Lantinga
42f90c6292
Removed unused path variable
2022-08-28 18:20:54 -07:00
Sam Lantinga
0db1813049
Applied OpenBSD patch
...
http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/devel/sdl2/patches/patch-src_joystick_bsd_SDL_bsdjoystick_c?rev=1.5&content-type=text/plain&hideattic=1
2022-08-28 07:27:01 -07:00
Sam Lantinga
b188a916ff
Fixed uhid device name for non-OpenBSD platforms
2022-08-27 09:46:28 -07:00
Brad Smith
3f93ec470a
Add support for OpenBSD's ujoy(4)
2022-08-27 09:45:08 -07:00
Sam Lantinga
277b033e78
Refactor joystick GUID creation
2022-08-22 19:44:14 -07:00
Sam Lantinga
c1e0873940
Added the CRC of the joystick name to the GUID
...
This will make it possible to have mappings for different controllers
that have the same VID/PID. This happens frequently with some generic
controller boards that have been reused in many products.
Fixes https://github.com/libsdl-org/SDL/issues/6004
2022-08-22 18:22:35 -07:00
Sam Lantinga
e551384a99
Added functions to get the platform dependent name for a joystick or game controller
2022-04-26 14:54:14 -07:00
Sam Lantinga
120c76c84b
Updated copyright for 2022
2022-01-03 09:40:21 -08:00
Sylvain
6fb50bd0a6
Don't use "exp" as a name so that it's doesn´t show up with searching for the function
2021-11-22 08:38:46 -08:00
Cameron Gutman
1ccfbf963e
joystick: Convert HasLED() into a generic GetCapabilities() function
2021-11-11 15:10:08 -08:00
Cameron Cawley
08ae790497
Replace calls to asprintf with SDL_asprintf
2021-09-22 11:53:46 -07:00
Sam Lantinga
bf97c5a22f
Make sure SDL file descriptors don't leak into child processes
2021-09-08 14:47:40 -07:00
Sam Lantinga
d135c0762f
Added SDL_GameControllerSendEffect() and SDL_JoystickSendEffect() to allow applications to send custom effects to the PS4 and PS5 controllers
...
See testgamecontroller.c for an example of a custom PS5 trigger effect
2021-07-08 13:22:41 -07:00
Ozkan Sezer
2376458841
renamed SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H to SDL_HAVE_MACHINE_JOYSTICK_H
2021-01-24 00:51:25 -05:00
Sam Lantinga
9130f7c377
Updated copyright for 2021
2021-01-02 10:25:38 -08:00
Sam Lantinga
ee180efda7
Fixed bug 5406 - Upstreaming DragonFlyBSD changes from DeltaPorts (patch from David Carlier)
2020-12-20 12:08:49 -08:00
Sam Lantinga
34bea84a54
Fixed bug 5335 - Patch: enable joystick/haptic/evdev support by default on FreeBSD
...
Alex S
Ah, that's not quite enough. You need to:
1. rename src/joystick/bsd/SDL_sysjoystick.c to something;
2. regenerate configure.
2020-11-23 23:03:55 -08:00