mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
release input when console is showing
This commit is contained in:
parent
8404143afe
commit
b4b2404303
|
@ -327,10 +327,16 @@ void CONSOLE::toggle(int type)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (console_state == CONSOLE_CLOSED || console_state == CONSOLE_CLOSING)
|
if (console_state == CONSOLE_CLOSED || console_state == CONSOLE_CLOSING)
|
||||||
|
{
|
||||||
|
inp_mouse_mode_absolute();
|
||||||
console_state = CONSOLE_OPENING;
|
console_state = CONSOLE_OPENING;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
inp_mouse_mode_relative();
|
||||||
console_state = CONSOLE_CLOSING;
|
console_state = CONSOLE_CLOSING;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
console_type = type;
|
console_type = type;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue