Commit c465145b authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: clear mouse buttons when toggling the console

parent 072bd40e
......@@ -1520,8 +1520,8 @@ void OSD_ResizeDisplay(int w, int h)
//
void OSD_CaptureInput(int cap)
{
g_mouseBits = 0;
osd->flags = (osd->flags & ~(OSD_CAPTURE|OSD_CTRL|OSD_SHIFT)) | (-cap & OSD_CAPTURE);
mouseGrabInput(cap == 0 ? g_mouseLockedToWindow : 0);
onshowosd(cap);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment