User Tools

Site Tools


crpl:docs:getmousebutton

This is an old revision of the document!


~~DISCUSSION~~ <- 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.1412190170.txt.gz · Last modified: 2025/02/14 14:56 (external edit)