long_press
This event is called when the user long presses the screen, for longer than SkyOS.settings.longPressDelay
or 500 milliseconds by default.
Return Values
- string: The event name.
- number: The mouse button that was clicked.
- number: The X position of the click.
- number: The Y position of the click.
while true do local _,button,x,y = os.pullEvent("long_press") print("Mouse button:",button) print(x,y) end