fix -Wenum-compare warnings

This commit is contained in:
Andrei Alexeyev 2017-12-30 17:54:09 +02:00
parent e6697306f9
commit 990f45a08c
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4

View file

@ -734,7 +734,7 @@ SDL_GameControllerButton gamepad_button_to_sdl_button(GamepadButton btn) {
}
GamepadAxis gamepad_axis_from_sdl_axis(SDL_GameControllerAxis axis) {
if(axis <= GAMEPAD_AXIS_INVALID || axis >= GAMEPAD_AXIS_MAX) {
if(axis <= SDL_CONTROLLER_AXIS_INVALID || axis >= SDL_CONTROLLER_AXIS_MAX) {
return GAMEPAD_AXIS_INVALID;
}
@ -742,7 +742,7 @@ GamepadAxis gamepad_axis_from_sdl_axis(SDL_GameControllerAxis axis) {
}
SDL_GameControllerAxis gamepad_axis_to_sdl_axis(GamepadAxis axis) {
if(axis <= SDL_CONTROLLER_AXIS_INVALID || axis >= SDL_CONTROLLER_AXIS_MAX) {
if(axis <= GAMEPAD_AXIS_INVALID || axis >= GAMEPAD_AXIS_MAX) {
return SDL_CONTROLLER_AXIS_INVALID;
}