Method keys.waitForNoModifierKeysAndMouseButtons
Overload
Waits while some modifier keys (Ctrl
, Shift
, Alt
, Win
) or mouse buttons are pressed.
public static bool waitForNoModifierKeysAndMouseButtons(Seconds timeout = default, KMod mod = KMod.Shift | KMod.Ctrl | KMod.Alt | KMod.Win, MButtons buttons = MButtons.Left | MButtons.Right | MButtons.Middle | MButtons.X1 | MButtons.X2)
Parameters
timeout (Seconds)
Timeout, seconds. Can be 0 (infinite), >0 (exception) or <0 (no exception). More info: Wait timeout. Default 0. |
mod (KMod)
Check only these keys. Default: all. |
buttons (MButtons)
Check only these buttons. Default: all. |
Returns
bool
Returns |
Exceptions
TimeoutException
timeout time has expired (if > 0). |