mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
FINALLY fix that mouse hiding bug that's been bothering me forever
This commit is contained in:
parent
8cccd6bf69
commit
bbf9cfb618
2 changed files with 1 additions and 2 deletions
|
@ -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 a new issue