FINALLY fix that mouse hiding bug that's been bothering me forever
This commit is contained in:
parent
8cccd6bf69
commit
bbf9cfb618
|
@ -125,7 +125,7 @@ static void controller_sdl_init(void) {
|
|||
joy_axis_binds[i] = -1;
|
||||
}
|
||||
|
||||
if (newcam_mouse == 1)
|
||||
if (newcam_mouse == 1 && gMenuMode == -1 && !gDjuiChatBoxFocus && !gDjuiConsoleFocus)
|
||||
SDL_WM_GrabInput(SDL_GRAB_ON);
|
||||
SDL_GetRelativeMouseState(&mouse_x, &mouse_y);
|
||||
|
||||
|
|
|
@ -187,7 +187,6 @@ void djui_interactable_set_input_focus(struct DjuiBase* base) {
|
|||
djui_interactable_on_focus_end(gInteractableFocus);
|
||||
gInteractableFocus = base;
|
||||
djui_interactable_on_focus_begin(base);
|
||||
djui_cursor_set_visible(base == NULL);
|
||||
}
|
||||
|
||||
bool djui_interactable_is_input_focus(struct DjuiBase* base) {
|
||||
|
|
Loading…
Reference in New Issue