FINALLY fix that mouse hiding bug that's been bothering me forever

This commit is contained in:
Agent X 2024-03-09 21:03:18 -05:00
parent 8cccd6bf69
commit bbf9cfb618
2 changed files with 1 additions and 2 deletions

View File

@ -125,7 +125,7 @@ static void controller_sdl_init(void) {
joy_axis_binds[i] = -1; joy_axis_binds[i] = -1;
} }
if (newcam_mouse == 1) if (newcam_mouse == 1 && gMenuMode == -1 && !gDjuiChatBoxFocus && !gDjuiConsoleFocus)
SDL_WM_GrabInput(SDL_GRAB_ON); SDL_WM_GrabInput(SDL_GRAB_ON);
SDL_GetRelativeMouseState(&mouse_x, &mouse_y); SDL_GetRelativeMouseState(&mouse_x, &mouse_y);

View File

@ -187,7 +187,6 @@ void djui_interactable_set_input_focus(struct DjuiBase* base) {
djui_interactable_on_focus_end(gInteractableFocus); djui_interactable_on_focus_end(gInteractableFocus);
gInteractableFocus = base; gInteractableFocus = base;
djui_interactable_on_focus_begin(base); djui_interactable_on_focus_begin(base);
djui_cursor_set_visible(base == NULL);
} }
bool djui_interactable_is_input_focus(struct DjuiBase* base) { bool djui_interactable_is_input_focus(struct DjuiBase* base) {