MiniGUI API Reference (MiniGUI-Standalone)
v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
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... | |
void GUIAPI GetOriginalMousePosition | ( | int * | x, |
int * | y | ||
) |
Gets the original mouse position.
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. |
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.
src_pts | The pointer to an array of five source points. |
dst_pts | The pointer to an array of five destination points. |