This shows you the differences between two versions of the page.
ro:mouseb [2017/09/14 13:44] junior-root [Exemplu] |
ro:mouseb [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== MouseB (Funcție) ===== | ||
- | > **Engleză: | ||
- | ==== Format ==== | ||
- | **mouseb**\\ | ||
- | **mouseb** ( ) | ||
- | |||
- | Întoarce un [[integerexpressions|număr_întreg]]. | ||
- | ==== Descriere ==== | ||
- | Întoarce un [[integerexpressions|număr_întreg]] ce conține butoanele mouse-ului care sunt apăsate în acest moment (funcționează doar când săgeata mouse-ului este deasupra ferestrei grafice). Valoare întoarsă este o combinație între **MOUSEBUTTON_LEFT**, | ||
- | {{page> | ||
- | ==== Exemplu ==== | ||
- | < | ||
- | loop: | ||
- | cls | ||
- | print " | ||
- | print " | ||
- | print " | ||
- | |||
- | print " | ||
- | print " | ||
- | print " | ||
- | |||
- | pause 0.05 | ||
- | goto loop | ||
- | </ | ||
- | |||
- | ==== Exemplul al doilea ==== | ||
- | < | ||
- | penwidth 2 | ||
- | color blue | ||
- | start: | ||
- | if mouseb = MOUSEBUTTON_LEFT then plot mousex, | ||
- | goto start | ||
- | </ | ||
- | |||
- | ==== Vezi și ==== | ||
- | {{page> | ||
- | ==== Istoric ==== | ||
- | |0.9.4d|Adăugată în acestă versiune| | ||
- | |1.99.99.58|S-au adăugat numele constantelor pentru butoane| | ||