From e821cdc0760bb3d35a6f2a35417ea1ab941cf03a Mon Sep 17 00:00:00 2001 From: BroGamer <64546358+BroGamer4256@users.noreply.github.com> Date: Sun, 16 Oct 2022 15:23:23 +1300 Subject: [PATCH] Fix --- Makefile | 4 ++-- src/poll.c | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) 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; } }