|   | 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) | 
            
              |   | 2c518747 | 2022-09-27T09:56:02 |  | Added microsecond timestamp to sensor values for PS4 and PS5 controllers using the HIDAPI driver | 
            
              |   | e8c3ff56 | 2022-03-17T10:01:13 |  | Removed problematic call to ISensor_SetEventSink()
Fixes https://github.com/libsdl-org/SDL/issues/5288 | 
            
              |   | 120c76c8 | 2022-01-03T09:40:00 |  | Updated copyright for 2022 | 
            
              |   | 3ba9276a | 2021-11-28T21:14:02 |  | Don't fail the sensor init if we couldn't create a sensor manager (i.e. we're running on Wine)
Fixes https://github.com/libsdl-org/SDL/issues/5031 | 
            
              |   | 844d5e3e | 2021-02-21T11:54:50 |  | Fix memory leak in ConnectSensor
'name' is leaked in case of error. | 
            
              |   | 265a1cc9 | 2021-01-05T15:50:02 |  | use WIN_StringToUTF8W instead of WIN_StringToUTF8 where needed (#2)
cf. bug #5435.
- SDL_wasapi_win32.c (GetWasapiDeviceName): pwszVal is WCHAR*
- windows/SDL_sysfilesystem.c (SDL_GetBasePath, SDL_GetPrefPath)
- windows/SDL_sysurl.c (SDL_SYS_OpenURL): wurl is WCHAR*
- SDL_windowssensor.c (ConnectSensor): bstr_name is WCHAR*
- windows/SDL_systhread.c (SDL_SYS_SetupThread): strw is WCHAR* | 
            
              |   | 9130f7c3 | 2021-01-02T10:25:38 |  | Updated copyright for 2021 | 
            
              |   | 56622f9c | 2020-06-17T10:09:07 |  | Fixed bug 5126 - MinGW compile error SDL_windowssensor.c
Martin Gerhardy
SDL_windowssensor.c includes InitGuid.h - but it should be initguid.h | 
            
              |   | a299fdd7 | 2020-05-21T03:52:48 |  | sensor: Fixed compiler warnings on mingw64. | 
            
              |   | b4e76b58 | 2020-05-20T17:32:23 |  | sensor: Fix overaggressive search/replace.  :) | 
            
              |   | 27c38eb2 | 2020-05-20T17:22:52 |  | sensor: Correct fix for redefinition of various symbols. | 
            
              |   | c9d358bc | 2020-05-20T16:59:35 |  | sensor: Fix build on various Windows compilers with various predefinitions. | 
            
              |   | 68777406 | 2020-05-20T16:58:33 |  | windows: Fix calls to CoCreateInstance() so last parameter is a LPVOID *. | 
            
              |   | 0f374b06 | 2020-04-22T15:42:32 |  | Fixed build on older Visual Studio, enable new features on newer Visual Studio | 
            
              |   | aba27928 | 2020-04-18T21:41:37 |  | Added a Windows Gaming Input joystick driver
This driver supports the Razer Atrox Arcade Stick
Some of the quirks of this driver, inherent in Windows Gaming Input:
* There will never appear to be controllers connected at startup. You must support hot-plugging in order to see these controllers.
* You can't read the state of the guide button
* You can't get controller events in the background | 
            
              |   | e9c94ac0 | 2020-04-08T10:27:30 |  | Fixed Windows accelerometer data units | 
            
              |   | 09f55263 | 2020-04-08T09:00:10 |  | Fixed memory leak and removed debug code from Windows sensor implementation | 
            
              |   | 3180ba81 | 2020-04-08T08:34:27 |  | First pass at Windows sensor implementation |