/** ** Enable/disable grabbing the mouse ** ** @param enabled True to enable mouse grabbing, false to disable */ void SetGrabMouse(bool enabled) { ToggleGrabMouse(enabled ? 1 : -1); }
/** ** Toggle grab mouse on/off. */ static void UiToggleGrabMouse() { DebugPrint("%x\n" _C_ KeyModifiers); ToggleGrabMouse(0); UI.StatusLine.Set(_("Grab mouse toggled.")); }