User Tools

Site Tools


crpl:docs:getmousebutton

<- 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
crpl/docs/getmousebutton.txt · Last modified: 2021/02/05 11:44 by Karsten75