User Tools

Site Tools


4rpl:commands:getmousebutton

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:getmousebutton [2021/04/23 23:01] – clarity durikkan4rpl:commands:getmousebutton [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 3: Line 3:
  
 ====== GetMouseButton ====== ====== GetMouseButton ======
-GetMouseButton(<-button <-ignoreOverUI) ->val+GetMouseButton(<-button <-ignorePressesOverUI) ->val
  
 ===== Description ===== ===== Description =====
-Returns a boolean indicating if the specified mouse button is pressed. +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.
-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 ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
4rpl/commands/getmousebutton.1619218874.txt.gz · Last modified: 2025/02/14 14:56 (external edit)