Method keys.gui.isPressed
Overload
Returns true if the specified key or mouse button is pressed.
public static bool isPressed(KKey key)
Parameters
| key (KKey) |
Returns
Remarks
Can be used for mouse buttons too. Example: keys.gui.isPressed(KKey.MouseLeft). When mouse left and right buttons are swapped, gets logical state, not physical.