MiniGUI API Reference (MiniGUI-Threads)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Functions

Functions

MG_EXPORT BOOL GUIAPI SetMouseCalibrationParameters (const POINT *src_pts, const POINT *dst_pts)
 Sets the parameters for doing mouse calibration. More...
 
MG_EXPORT void GUIAPI GetOriginalMousePosition (int *x, int *y)
 Gets the original mouse position. More...
 

Detailed Description

Function Documentation

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

Gets the original mouse position.

Parameters
xThe pointer used to return the x coordinate of original mouse position.
yThe 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_ptsThe pointer to an array of five source points.
dst_ptsThe 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.