User Tools

Site Tools


en:clickb

Clickb (Function)

Format

clickb
clickb ( )

returns integer_expression

Description

Returns the buttons that the user last clicked on the mouse (if over the graphic output). Returns 0 if no click has been recorded.

Return Values
ConstantValue
MOUSEBUTTON_NONE0
MOUSEBUTTON_LEFT1
MOUSEBUTTON_RIGHT2
MOUSEBUTTON_CENTER4
MOUSEBUTTON_DOUBLECLICK32
2016/08/14 14:38 · admin

Example

# clear any prior mouse click
clickclear
# wait for the user to click the mouse
print "click mouse on the graphics output"
while clickb = 0
  pause .01
endwhile
# show where the user clicked
print "The user clicked at (" + clickx + "," + clicky + ")"

See Also

2016/01/01 22:42

History

0.9.4dNew To Version
1.99.99.58Added Named Constants
en/clickb.txt · Last modified: 2016/08/14 14:50 by admin