This shows you the differences between two versions of the page.
el:clickb [2016/01/01 22:38] |
el:clickb [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Clickb ===== | ||
+ | |||
+ | ==== Format ==== | ||
+ | |||
+ | **clickb**\\ | ||
+ | **clickb** ( ) | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | Returns the buttons that the user last clicked on the mouse (if over the graphic output). | ||
+ | ^Return Values^^ | ||
+ | ^Value^Mouse Button Pressed^ | ||
+ | |0|None| | ||
+ | |1|Left| | ||
+ | |2|Right| | ||
+ | |4|Center| | ||
+ | |||
+ | ==== See Also ==== | ||
+ | |||
+ | [[clickclear|Clickclear]], | ||
+ | |||
+ | ==== 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 + "," | ||
+ | </ | ||
+ | |||
+ | ==== New To Version ==== | ||
+ | |||
+ | 0.9.4d | ||
+ | |||