plGetCursor: Wait for graphics input event and translate to world coordinates.

int plGetCursor (gin);

Wait for graphics input event and translate to world coordinates. Returns 0 if no translation to world coordinates is possible.

gin (PLGraphicsIn *, output)

Pointer to PLGraphicsIn structure which will contain the output. The structure is not allocated by the routine and must exist before the function is called.

This function returns 1 on success and 0 if no translation to world coordinates is possible.

This function is currently only available with the C, C++, Ocaml, Octave, Perl, Python and Ada language bindings.

This function is used in examples 1 and 20.