User Tools

Site Tools


4rpl:commands:getmousebuttondown

Index

GetMouseButtonDown

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

Description

Returns a boolean indicating if the specified mouse button was pressed during the game frame. Note: This only return true once until the mouse button is released and pressed again. 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 the events when the cursor is over the UI.

Examples

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

Index

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