ReferenceInput

mouse2press

Queues a held press of the right mouse button.

Syntax

mouse2press() -> ()

Also available as

mouse_2_press

Description

Input is delivered to the current game instance, not to the desktop pointer. Pair a held press with the corresponding release. An unavailable or full input queue raises an error.

Example

mouse2press()
task.wait(0.1)
mouse2release()

These are Game executor contracts. Check build requirements and session lifetimes before using them.