~~NOTOC~~ <=[[4rpl:start| 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 <=[[4rpl:start| Index]]