Add capture IO flags to UI, for better input handling

This commit is contained in:
2024-01-07 14:18:53 +01:00
parent b8b36d9cb7
commit 5f4bb3316c
3 changed files with 57 additions and 4 deletions

View File

@@ -180,6 +180,15 @@ BzUIKey bzUIKeyFromString(const char *str);
BzUI *bzUICreate();
void bzUIDestroy(BzUI *ui);
bool bzUICapturedMouse(BzUI *ui);
bool bzUICapturedKeyboard(BzUI *ui);
bool bzUIGetCaptureMouse(BzUI *ui);
bool bzUIGetCaptureKeyboard(BzUI *ui);
void bzUISetCaptureMouse(BzUI *ui, bool state);
void bzUISetCaptureKeyboard(BzUI *ui, bool state);
void bzUIBegin(BzUI *ui, i32 width, i32 height);
void bzUIEnd(BzUI *ui);