Skip to content
Desktop inputOverview

mouse1press

Represents a primary mouse button press.

Details#

Left 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
    mouse1press()
    mouse1release()
end