User Tools

Site Tools


4rpl:commands:getmousebutton

This is an old revision of the document!


Index

GetMouseButton

GetMouseButton(<-button true) ->val

Description

Returns a boolean indicating if the specified mouse button is pressed. Note: This returns true for as long as the mouse button is pressed. The button argument specifies which mouse button the check. A value of 0 means the left button, 1 the right button, and 2 the middle button. The second argument indicates whether to ignore the events when over the UI.

Examples

if (GetMouseButton(0 true))
   Trace("Left Button Down")
endif

Index

4rpl/commands/getmousebutton.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)