Functions | |
if(numel(ostream)< 1) error("ginput | fflush (ostream) |
fputs (ostream,"\nif (exists(\"MOUSE_KEY\") && exists(\"MOUSE_X\")) print MOUSE_X, MOUSE_Y, MOUSE_KEY; else print \"0 0 -1\"\n") | |
fputs (ostream,"set print;\n") | |
fclose (gpin) | |
else | fprintf (ostream,"set print \"-\";\n") |
fputs (ostream,"pause mouse any;\n\n") | |
fputs (ostream,"\nif (exists(\"MOUSE_KEY\") && exists(\"MOUSE_X\")) print \"OCTAVE: \", MOUSE_X, MOUSE_Y, MOUSE_KEY; else print \"0 0 -1\"\n") | |
while (isempty(str)) str | |
if (isempty(str)) sleep(0.05) | |
endif | fclear (istream) |
endif | if ([x(k), y(k), button(k)]==[0, 0,-1]) break |
endif | if (nargin > 1) if(k |
Variables | |
function [x, y, button] | |
if(err!=0) error("ginput n | n = fopen (gpin_name, "r") |
str = {} | |
endwhile [x(k), y(k), button(k), count] = sscanf (str{end}(8:end), "%f %f %d", "C") |
endif fclear | ( | istream | ) |
fclose | ( | gpin | ) |
fputs | ( | ostream | , | |
"\nif (exists(\"MOUSE_KEY\") && exists(\"MOUSE_X\")) print \"OCTAVE: \" | , | |||
MOUSE_X | , | |||
MOUSE_Y | , | |||
MOUSE_KEY;else print\"0 0 -1\"\n" | ||||
) |
fputs | ( | ostream | , | |
"pause mouse any;\n\n" | ||||
) |
fputs | ( | ostream | , | |
"set print;\n" | ||||
) |
fputs | ( | ostream | , | |
"\nif (exists(\"MOUSE_KEY\") && exists(\"MOUSE_X\")) print | MOUSE_X, | |||
MOUSE_Y | , | |||
MOUSE_KEY;else print\"0 0 -1\"\n" | ||||
) |
endif if | ( | 0 | , | |
-1] | ||||
) |
if | ( | isempty(str) | ) |
while | ( | isempty(str) | ) |
function[x, y, button] |
if (err != 0) error ("ginput n n = fopen (gpin_name, "r") |
else str = {} |