Rename SDL_Swap(16|32|64)(LE|BE) to SDL_Swap(LE|BE)(16|32|64)
This commit is contained in:
committed by
Anonymous Maarten
parent
ef6123886e
commit
32907a9606
@@ -340,7 +340,7 @@ static int HIDAPI_DriverPS3_SetJoystickSensorsEnabled(SDL_HIDAPI_Device *device,
|
||||
static float HIDAPI_DriverPS3_ScaleAccel(Sint16 value)
|
||||
{
|
||||
/* Accelerometer values are in big endian order */
|
||||
value = SDL_SwapBE16(value);
|
||||
value = SDL_Swap16BE(value);
|
||||
return ((float)(value - 511) / 113.0f) * SDL_STANDARD_GRAVITY;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user