Skip to content
Desktop inputOverview

mouse2press

Represents a secondary mouse button press.

Details#

Right desktop mouse button. Emits a press only; pair it with the release call. No arguments or return values; the event is delivered at the current cursor position.

Examples#

Example

Luau
if iswindowactive() then
    mouse2press()
    mouse2release()
end