make mouse movement and capture depend on window focus

This commit is contained in:
veclavtalica
2025-01-14 02:07:54 +03:00
parent dbe6217e24
commit 86bf16b680
3 changed files with 17 additions and 2 deletions

View File

@ -82,6 +82,8 @@ typedef struct EngineContext {
bool resync_flag;
bool was_successful;
bool render_double_buffered;
/* signals mouse focus, used to disable mouse capture */
bool window_mouse_resident;
} EngineContext;
/* TODO: does it need to be marked with TWN_API? */