ismouse1pressed
Left / right mouse button state (focus-gated).
Syntax
ismouse1pressed() -> boolean
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
boolean | Boolean |
Description
ismouse1pressed is part of the Input & clipboard library. Input helpers read or synthesize OS input and only report state while the game window is focused.
The call is a predicate: it inspects the current state and returns a boolean without modifying anything.
The aliases ismouse2pressed() resolve to the same implementation.
Example
print(ismouse1pressed(), ismouse2pressed())
Notes
- Aliases:
ismouse2pressed(). - Input status is focus-gated and only reports while the game is active.