Fix
This commit is contained in:
parent
40dc8a9c9c
commit
e821cdc076
4
Makefile
4
Makefile
@ -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}
|
||||||
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user