User Tools

Site Tools


en:clickb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:clickb [2016/08/14 15:50]
admin
en:clickb [2020/02/28 10:46]
Line 1: Line 1:
-===== Clickb (Function) ===== 
  
-==== Format ==== 
- 
-**clickb**\\ 
-**clickb** ( ) 
- 
-returns [[integerexpressions|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. 
- 
-{{page>mousebuttonconstants}} 
- 
-==== Example ==== 
-<code> 
-# 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 + ")" 
-</code> 
- 
-==== See Also ==== 
-{{page>en:start#Mouse&noheader}} 
- 
-==== History ====  
-|0.9.4d|New To Version| 
-|1.99.99.58|Added Named Constants| 
en/clickb.txt ยท Last modified: 2020/02/28 10:46 (external edit)