mouse2press
Injects right mouse input.
Syntax
mouse2press() -> nil
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
mouse2press is part of the Input library. Input helpers either read the current OS input state or synthesize OS-level events. Some game interactions also require the Roblox window to be focused.
The operation is performed immediately using the arguments supplied at the call site.
The aliases mouse2release(), mouse2click() resolve to the same implementation.
Example
mouse2press()
mouse2release()
mouse2click()
Notes
- Aliases:
mouse2release(),mouse2click(). - Synthetic input may be ignored by games that validate input origins.