twn_input.c: remove input_mouse_captured(), add ctx.mouse_capture

This commit is contained in:
veclavtalica
2025-01-14 00:28:21 +03:00
parent 6d19d2d819
commit 4ed3764c1d
5 changed files with 5 additions and 18 deletions

View File

@ -38,6 +38,7 @@ typedef struct Context {
/* is set to true when state is invalidated and needs to be rebuilt */
/* watch for it and handle properly! */
bool initialization_needed;
bool mouse_capture;
} Context;
/* when included after twn_engine_context there's an 'ctx' defined already */

View File

@ -15,6 +15,5 @@ TWN_API bool input_action_pressed(const char *name);
TWN_API bool input_action_just_pressed(const char *name);
TWN_API bool input_action_just_released(const char *name);
TWN_API Vec2 input_action_position(const char *name);
TWN_API void input_mouse_captured(bool enabled);
#endif