![]() |
![]()
| ![]() |
![]()
NAMEtoggle_mouse_grab - Switch the lock state of the mouse device. SYNOPSISgrabstate
optmode ) DESCRIPTIONFor some control schemes, it's important to prevent mouse input from being dropped due to window managers in the underlying OS . This function allows you to toggle this state (or explicitly set it to MOUSE_GRABON or MOUSE_GRABOFF ). Calling this function always return the current active state. NOTES
EXAMPLEfunction toggle_mouse_grab0() MISUSEfunction toggle_mouse_grab0()
|