<- CRPL reference <- Input Commands
Arguments | Result | Notation |
---|---|---|
Mouse button to check | 0 or 1 depending if mouse button is pressed | i1 – b1 |
Checks the specified mouse button to see if it was pressed during the game frame. Only returns true the game fram/update that the mouse button is pressed. 0 = Left Mouse, 1 = Right Mouse, 2 = Middle Mouise
if (GetMouseButtonDown(0)) # Fire projectile once. endif