<- CRPL reference <- Input Commands

GetMouseButton

ArgumentsResultNotation
Mouse button to check 0 or 1 depending if mouse button was pressed i1 – b1

Description

Checks the specified mouse button to see if it is held down. 0 = Left Mouse, 1 = Right Mouse, 2 = Middle Mouise

Examples

if (GetMouseButton(0))
   # Fire projectile each frame
endif