Mouse calibration.
[Global/general functions]

Functions


Function Documentation

void GUIAPI GetOriginalMousePosition ( int *  x,
int *  y 
)

Gets the original mouse position.

Parameters:
x The pointer used to return the x coordinate of original mouse position.
y The pointer used to return the y coordinate of original mouse position.
Returns:
none.
Note:
This function is available when _MGHAVE_MOUSECALIBRATE (option: --enable-mousecalibrate) defined.
Only call this function in MiniGUI-Standalone, MiniGUI-Threads, and the server (mginit) of MiniGUI-Processes. The behavior of this function will be undefined if you call it in a client of MiniGUI-Processes.
BOOL GUIAPI SetMouseCalibrationParameters ( const POINT src_pts,
const POINT dst_pts 
)

Sets the parameters for doing mouse calibration.

This function set the parameters for doing mouse calibration. You should pass five source points and five destination points.

Normally, the points should be the upper-left, upper-right, lower-right, lower-left, and center points on the touch panel. The source point is the coordinates before calibrating, and the destination point is the desired coordinates after calibrating.

This function will try to evaluate a matrix to calibrate. If the points are okay, MiniGUI will do the calibration after getting a point from the underlay IAL engine.

Parameters:
src_pts The pointer to an array of five source points.
dst_pts The pointer to an array of five destination points.
Returns:
TRUE for success, FALSE for bad arguments.
Note:
This function is available when _MGHAVE_MOUSECALIBRATE (option: --enable-mousecalibrate) defined.
Only call this function in MiniGUI-Standalone, MiniGUI-Threads, and the server (mginit) of MiniGUI-Processes. The behavior of this function will be undefined if you call it in a client of MiniGUI-Processes.
Generated on Thu Apr 7 16:01:49 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3