| 
              
0d763800
               | 
              
2023-03-09T15:10:00
               | 
              
               | 
              
Code style: changed "sizeof foo" to "sizeof(foo)" (thanks @sezero!)
(cherry picked from commit c6443d86c92e962683a1efe5f123a144988875b5)
               | 
            
            
              
   
               | 
              
0479df53
               | 
              
2023-01-09T09:48:21
               | 
              
               | 
              
Updated copyright for 2023
               | 
            
            
              
   
               | 
              
b8d85c69
               | 
              
2022-11-30T12:51:59
               | 
              
               | 
              
Update for SDL3 coding style (#6717)
I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base.
In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted.
The script I ran for the src directory is added as build-scripts/clang-format-src.sh
This fixes:
#6592
#6593
#6594
(cherry picked from commit 5750bcb174300011b91d1de20edb288fcca70f8c)
               | 
            
            
              
   
               | 
              
fb0ce375
               | 
              
2022-11-27T17:38:43
               | 
              
               | 
              
Cleanup add brace (#6545)
* Add braces after if conditions
* More add braces after if conditions
* Add braces after while() conditions
* Fix compilation because of macro being modified
* Add braces to for loop
* Add braces after if/goto
* Move comments up
* Remove extra () in the 'return ...;' statements
* More remove extra () in the 'return ...;' statements
* More remove extra () in the 'return ...;' statements after merge
* Fix inconsistent patterns are xxx == NULL vs !xxx
* More "{}" for "if() break;"  and "if() continue;"
* More "{}" after if() short statement
* More "{}" after "if () return;" statement
* More fix inconsistent patterns are xxx == NULL vs !xxx
* Revert some modificaion on SDL_RLEaccel.c
* SDL_RLEaccel: no short statement
* Cleanup 'if' where the bracket is in a new line
* Cleanup 'while' where the bracket is in a new line
* Cleanup 'for' where the bracket is in a new line
* Cleanup 'else' where the bracket is in a new line
(cherry picked from commit 6a2200823c66e53bd3cda4a25f0206b834392652 to reduce conflicts merging between SDL2 and SDL3)
               | 
            
            
              
   
               | 
              
fc73386f
               | 
              
2022-10-12T21:44:50
               | 
              
               | 
              
Fixed the mapping from raw joystick values to the expected [SDL_JOYSTICK_AXIS_MIN, SDL_JOYSTICK_AXIS_MAX] range. (thanks Tas!)
The original code mapped incorrectly from [min, max] to [-32768, 32512], the upper bound being SDL_JOYSTICK_AXIS_MAX - 255 instead of SDL_JOYSTICK_AXIS_MAX.
               | 
            
            
              
   
               | 
              
1153aaae
               | 
              
2022-08-29T00:15:56
               | 
              
               | 
              
Fixed compiling with USB_GET_DEVICEINFO on DragonFly BSD
Although the ioctl() currently fails on this platform...
               | 
            
            
              
   
               | 
              
57cbec10
               | 
              
2022-08-28T23:18:40
               | 
              
               | 
              
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
               | 
            
            
              
   
               | 
              
761b9d1e
               | 
              
2022-08-28T22:33:17
               | 
              
               | 
              
Use the HID usage for the button as the button number
               | 
            
            
              
   
               | 
              
a9d3935a
               | 
              
2022-08-28T18:17:50
               | 
              
               | 
              
Improved code to get the name and guid for joysticks on OpenBSD and NetBSD
Also dynamically allocate joysticks to reduce static memory usage
               | 
            
            
              
   
               | 
              
4a800ae1
               | 
              
2022-08-28T16:11:12
               | 
              
               | 
              
Created a consolidated define enabling BSD gameport joystick support
               | 
            
            
              
   
               | 
              
42f90c62
               | 
              
2022-08-28T16:01:03
               | 
              
               | 
              
Removed unused path variable
               | 
            
            
              
   
               | 
              
0db18130
               | 
              
2022-08-28T07:27:01
               | 
              
               | 
              
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
               | 
            
            
              
   
               | 
              
b188a916
               | 
              
2022-08-27T09:46:28
               | 
              
               | 
              
Fixed uhid device name for non-OpenBSD platforms
               | 
            
            
              
   
               | 
              
3f93ec47
               | 
              
2022-08-26T20:52:56
               | 
              
               | 
              
Add support for OpenBSD's ujoy(4)
               | 
            
            
              
   
               | 
              
277b033e
               | 
              
2022-08-22T19:28:21
               | 
              
               | 
              
Refactor joystick GUID creation
               | 
            
            
              
   
               | 
              
c1e08739
               | 
              
2022-08-22T16:46:55
               | 
              
               | 
              
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
               | 
            
            
              
   
               | 
              
e551384a
               | 
              
2022-04-26T14:54:14
               | 
              
               | 
              
Added functions to get the platform dependent name for a joystick or game controller
               | 
            
            
              
   
               | 
              
120c76c8
               | 
              
2022-01-03T09:40:00
               | 
              
               | 
              
Updated copyright for 2022
               | 
            
            
              
   
               | 
              
6fb50bd0
               | 
              
2021-11-22T11:16:23
               | 
              
               | 
              
Don't use "exp" as a name so that it's doesn´t  show up with searching for the function
               | 
            
            
              
   
               | 
              
1ccfbf96
               | 
              
2021-11-11T11:13:08
               | 
              
               | 
              
joystick: Convert HasLED() into a generic GetCapabilities() function
               | 
            
            
              
   
               | 
              
08ae7904
               | 
              
2021-09-14T20:38:03
               | 
              
               | 
              
Replace calls to asprintf with SDL_asprintf
               | 
            
            
              
   
               | 
              
bf97c5a2
               | 
              
2021-09-08T14:47:40
               | 
              
               | 
              
Make sure SDL file descriptors don't leak into child processes
               | 
            
            
              
   
               | 
              
d135c076
               | 
              
2021-07-08T13:22:41
               | 
              
               | 
              
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
               | 
            
            
              
   
               | 
              
23764588
               | 
              
2021-01-23T17:24:28
               | 
              
               | 
              
renamed SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H to SDL_HAVE_MACHINE_JOYSTICK_H
               | 
            
            
              
   
               | 
              
9130f7c3
               | 
              
2021-01-02T10:25:38
               | 
              
               | 
              
Updated copyright for 2021
               | 
            
            
              
   
               | 
              
ee180efd
               | 
              
2020-12-20T12:08:49
               | 
              
               | 
              
Fixed bug 5406 - Upstreaming DragonFlyBSD changes from DeltaPorts (patch from David Carlier)
               | 
            
            
              
   
               | 
              
34bea84a
               | 
              
2020-11-23T23:03:55
               | 
              
               | 
              
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.
               |