release input when console is showing

This commit is contained in:
Magnus Auvinen 2008-10-20 18:12:15 +00:00
parent 8404143afe
commit b4b2404303

View file

@ -327,10 +327,16 @@ void CONSOLE::toggle(int type)
}
if (console_state == CONSOLE_CLOSED || console_state == CONSOLE_CLOSING)
{
inp_mouse_mode_absolute();
console_state = CONSOLE_OPENING;
}
else
{
inp_mouse_mode_relative();
console_state = CONSOLE_CLOSING;
}
}
console_type = type;
}