Add capture IO flags to UI, for better input handling
This commit is contained in:
@@ -296,6 +296,10 @@ void update(float dt, void *userData) {
|
||||
BZ_ASSERT(game->stackAlloc.allocated == 0);
|
||||
bzStackAllocReset(&game->stackAlloc);
|
||||
|
||||
ImGuiIO *io = igGetIO();
|
||||
bzUISetCaptureMouse(UI, !io->WantCaptureMouse);
|
||||
bzUISetCaptureKeyboard(UI, !io->WantCaptureKeyboard);
|
||||
|
||||
updateInputState(input, game->camera, dt);
|
||||
|
||||
switch (game->screen) {
|
||||
|
||||
Reference in New Issue
Block a user