input
The input module allows you to simulate user input.
Summary
Methods
| Method | Signature | Description |
|---|---|---|
isActive | () -> boolean | Returns true if the window is currently in focus. |
batch | (actions: {Action}) -> () | Dispatches a sequence of input actions. |
click | (button: string?, pos: Vector2?) -> () | Simulates a mouse click. |
move | (pos: Vector2, relative: boolean?) -> () | Simulates mouse movement. |
scroll | (pixels: number) -> () | Simulates mouse scrolling. |
press | (key: Enum.KeyCode) -> () | Simulates a key press. |
release | (key: Enum.KeyCode) -> () | Simulates a key release. |