1
0
mirror of synced 2024-11-27 17:00:53 +01:00
This commit is contained in:
BroGamer 2022-10-16 15:23:23 +13:00
parent 40dc8a9c9c
commit e821cdc076
2 changed files with 4 additions and 6 deletions

View File

@ -30,8 +30,8 @@ ${TARGET}/%.o: %.c
.PHONY: SDL .PHONY: SDL
SDL: SDL:
@mkdir -p SDL/${SDL_TARGET} @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 @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} -j @make -s -C SDL/${SDL_TARGET}
.PHONY: ${OUT} .PHONY: ${OUT}
${OUT}: dirs ${DEPS} ${OBJ} ${OUT}: dirs ${DEPS} ${OBJ}

View File

@ -475,8 +475,7 @@ ControllerAxisIsDown (enum SDLAxis axis) {
case SDL_AXIS_RIGHT_DOWN: return currentControllerAxisState.RightDown; case SDL_AXIS_RIGHT_DOWN: return currentControllerAxisState.RightDown;
case SDL_AXIS_LTRIGGER_DOWN: return currentControllerAxisState.LTriggerDown; case SDL_AXIS_LTRIGGER_DOWN: return currentControllerAxisState.LTriggerDown;
case SDL_AXIS_RTRIGGER_DOWN: return currentControllerAxisState.RTriggerDown; case SDL_AXIS_RTRIGGER_DOWN: return currentControllerAxisState.RTriggerDown;
case SDL_AXIS_NULL: default: return false;
case SDL_AXIS_MAX: return false;
} }
} }
@ -498,8 +497,7 @@ ControllerAxisWasDown (enum SDLAxis axis) {
case SDL_AXIS_RIGHT_DOWN: return lastControllerAxisState.RightDown; case SDL_AXIS_RIGHT_DOWN: return lastControllerAxisState.RightDown;
case SDL_AXIS_LTRIGGER_DOWN: return lastControllerAxisState.LTriggerDown; case SDL_AXIS_LTRIGGER_DOWN: return lastControllerAxisState.LTriggerDown;
case SDL_AXIS_RTRIGGER_DOWN: return lastControllerAxisState.RTriggerDown; case SDL_AXIS_RTRIGGER_DOWN: return lastControllerAxisState.RTriggerDown;
case SDL_AXIS_NULL: default: return false;
case SDL_AXIS_MAX: return false;
} }
} }