User Tools

Site Tools


crpl:docs:getmousebuttondown

<- CRPL reference <- Input Commands

GetMouseButtonDown

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

Description

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

Examples

if (GetMouseButtonDown(0))
   # Fire projectile once.
endif
crpl/docs/getmousebuttondown.txt · Last modified: 2021/02/05 11:44 by Karsten75