twn_input.c: remove input_mouse_captured(), add ctx.mouse_capture
This commit is contained in:
@ -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 */
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user