Nano-X API Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
|
|
void GrMoveCursor ( |
Moves the cursor (mouse pointer) to the specified coordinates. The coordinates are relative to the root window, where (0,0) is the upper left hand corner of the screen. The reference point used for the pointer is that of the "hot spot". After moving the pointer, the graphic used for the pointer will change to the graphic defined for use in the window which it is over.
void GrInjectPointerEvent ( |
Sets the pointer invisible if the visible parameter is GR_FALSE, or visible if it is GR_TRUE, then moves the pointer to the specified position and generates a mouse event with the specified button status. Also performs a GrFlush() so that the event takes effect immediately.
void GrCalibrateMouse (int mode, |
Sets the mouse calibration to the specified values, and puts it into the specified mode. The possible modes are GR_MOUSEMODE_RAW and GR_MOUSEMODE_COOKED. In raw mode, the values returned for mouse events are the direct numbers returned by the hardware. In cooked mode, the values are scaled, filtered, and if necessary inverted according to the previously specified calibration values. Raw mode is intended to be used only by the calibration program to obtain the parameters of the touch panel in use so that it can calculate the calibration values.
mode : | the mode to run the mouse interface in (raw or cooked) |
xmin : | the minimum raw X value this device can generate |
xmax : | the maximum raw X value this device can generate |
ymin : | the minimum raw Y value this device can generate |
ymax : | the maximum raw Y value this device can generate |
xswap : | boolean specifying whether or not to invert the X values |
yswap : | boolean specifying whether or not to invert the Y values |
zthresh : | the pressure value which indicates that the pen is down |
showcursor : | boolean specifying whether the cursor should be shown |