1
.TH xgetmouse "September 1994" "Scilab Group" "Scilab Function"
4
xgetmouse - get the current position of the mouse
12
: vector of size 3, [x,y,ibutton].
15
: integer. If present, the click event queue is not cleared when entering
18
If the mouse is located in the current graphics window, \fVxgetmouse\fR returns
19
in \fVrep\fR the current mouse position (x,y) and the value \fVibutton\fR.
21
The \fVibutton\fR value indicates the action of the button at this point:
23
- if \fVibutton\fR is -1 then no button was clicked.
25
- if \fVibutton\fR is -5 -4 or -2 then left , middle or right button
28
- if \fVibutton\fR is 0, 1 or 2, then the left, middle or right button
31
If the mouse is not located in the current graphics window, \fVxgetmouse\fR
35
xselect(); xbasc(); xsetech([0 0 1 1],[0 0 100 100])
37
xtitle(" drawing a rectangle ")
38
[b,x0,y0]=xclick(); rep=[x0,y0,-1]; x=x0; y=y0;
39
xrect(x0,y0,x-x0,y-y0)
42
xrect(x0,y0,x-x0,y0-y)
44
xrect(x0,y0,x-x0,y0-y)