Compare commits

...

2 Commits

Author SHA1 Message Date
veclavtalica
785b507330 twn_input.c: ignore input param 2025-01-26 02:45:50 +03:00
veclavtalica
d884a9026f clean twn_timer 2025-01-26 02:45:01 +03:00
3 changed files with 3 additions and 2 deletions

View File

@ -229,7 +229,8 @@ function(give_options target)
-Wno-declaration-after-statement
-Wno-unsafe-buffer-usage
-Wno-unused-command-line-argument
-Wno-covered-switch-default)
-Wno-covered-switch-default
-Wno-disabled-macro-expansion)
set(WARNING_FLAGS
-Wall

View File

@ -11,7 +11,6 @@
static timer_t timerid;
static sigset_t mask;
static struct sigaction sa;
static struct sigevent sev;

View File

@ -217,6 +217,7 @@ void input_state_deinit(InputState *input) {
void input_state_update_postframe(InputState *input) {
(void)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__);