make inputs up-to-date for game tick
This commit is contained in:
@ -216,11 +216,14 @@ void input_state_deinit(InputState *input) {
|
||||
}
|
||||
|
||||
|
||||
void input_state_update(InputState *input) {
|
||||
void input_state_update_postframe(InputState *input) {
|
||||
/* TODO: don't spam it if it happens */
|
||||
if (SDL_SetRelativeMouseMode(ctx.game_copy.mouse_capture && ctx.window_mouse_resident) != 0)
|
||||
log_warn("(%s) Mouse capture isn't supported.", __func__);
|
||||
}
|
||||
|
||||
|
||||
void input_state_update(InputState *input) {
|
||||
int x, y;
|
||||
|
||||
input->keyboard_state = SDL_GetKeyboardState(NULL);
|
||||
|
Reference in New Issue
Block a user