User Tools

Site Tools


4rpl:commands:getmousebutton

Index

GetMouseButton

GetMouseButton(<-button <-ignorePressesOverUI) ->val

Description

Returns a boolean indicating if the specified mouse button is pressed. This returns true on any frame the mouse button is pressed. The button argument specifies which mouse button to 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 mouse presses when the cursor is over UI.

Examples

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

Index

4rpl/commands/getmousebutton.txt · Last modified: 2024/02/16 13:45 by digitalizedMind