Fixed unaligned access in NVIDIA SHIELD Controller driver

Also refactored the LOAD16() and LOAD32() macros into SDL_hidapijoystick_c.h
This commit is contained in:
Sam Lantinga
2026-01-27 11:25:38 -08:00
parent dd53ecbce8
commit cae2a28f5b
8 changed files with 32 additions and 32 deletions

View File

@@ -32,8 +32,6 @@
// Define this if you want to log all packets from the controller
// #define DEBUG_PS3_PROTOCOL
#define LOAD16(A, B) (Sint16)((Uint16)(A) | (((Uint16)(B)) << 8))
typedef enum
{
k_EPS3ReportIdState = 1,