mirror of https://github.com/encounter/SDL.git
Fixed compiler warnings
This commit is contained in:
parent
2ae41b9c61
commit
c9f672fde4
|
@ -450,7 +450,7 @@ HIDAPI_DriverXboxOne_HandleStatePacket(SDL_Joystick *joystick, hid_device *dev,
|
||||||
/* The mapped controller state is at offset 4, the raw state is at offset 18, compare them to see if the paddles are mapped */
|
/* The mapped controller state is at offset 4, the raw state is at offset 18, compare them to see if the paddles are mapped */
|
||||||
paddles_mapped = (SDL_memcmp(&data[4], &data[18], 14) != 0);
|
paddles_mapped = (SDL_memcmp(&data[4], &data[18], 14) != 0);
|
||||||
|
|
||||||
} else if (size == 38) {
|
} else /* if (size == 38) */ {
|
||||||
/* XBox One Elite Series 2 */
|
/* XBox One Elite Series 2 */
|
||||||
paddle_index = 18;
|
paddle_index = 18;
|
||||||
button1_bit = 0x04;
|
button1_bit = 0x04;
|
||||||
|
|
Loading…
Reference in New Issue