diff --git a/Makefile b/Makefile index 07e1d38..d952998 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,8 @@ ${TARGET}/%.o: %.c .PHONY: SDL SDL: @mkdir -p SDL/${SDL_TARGET} - @cd SDL/${SDL_TARGET} && ../configure -C --build=x86_64-linux-gnu --host=${SDL_TARGET} --disable-sdl2-config --disable-shared --enable-assertions=release --enable-directx --enable-haptic - @make -s -C SDL/${SDL_TARGET} -j + @cd SDL/${SDL_TARGET} && ../configure --build=x86_64-linux-gnu --host=${SDL_TARGET} --disable-sdl2-config --disable-shared --enable-assertions=release --enable-directx --enable-haptic + @make -s -C SDL/${SDL_TARGET} .PHONY: ${OUT} ${OUT}: dirs ${DEPS} ${OBJ} diff --git a/src/poll.c b/src/poll.c index 5c1e777..6f4f747 100644 --- a/src/poll.c +++ b/src/poll.c @@ -475,8 +475,7 @@ ControllerAxisIsDown (enum SDLAxis axis) { case SDL_AXIS_RIGHT_DOWN: return currentControllerAxisState.RightDown; case SDL_AXIS_LTRIGGER_DOWN: return currentControllerAxisState.LTriggerDown; case SDL_AXIS_RTRIGGER_DOWN: return currentControllerAxisState.RTriggerDown; - case SDL_AXIS_NULL: - case SDL_AXIS_MAX: return false; + default: return false; } } @@ -498,8 +497,7 @@ ControllerAxisWasDown (enum SDLAxis axis) { case SDL_AXIS_RIGHT_DOWN: return lastControllerAxisState.RightDown; case SDL_AXIS_LTRIGGER_DOWN: return lastControllerAxisState.LTriggerDown; case SDL_AXIS_RTRIGGER_DOWN: return lastControllerAxisState.RTriggerDown; - case SDL_AXIS_NULL: - case SDL_AXIS_MAX: return false; + default: return false; } }