📄 group__mouse__calibrate.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: Mouse calibration.</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>Mouse calibration.<br><small>[<a class="el" href="group__lite__fns.htm">MiniGUI-Processes specific functions</a>]</small></h1><h2>Functions</h2><ul><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__mouse__calibrate.htm#ga0">SetMouseCalibrationParameters</a> (const <a class="el" href="struct__POINT.htm">POINT</a> *src_pts, const <a class="el" href="struct__POINT.htm">POINT</a> *dst_pts)<dl class="el"><dd class="mdescRight">Sets the parameters for doing mouse calibration. <a href="#ga0"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__mouse__calibrate.htm#ga1">GetOriginalMousePosition</a> (int *x, int *y)<dl class="el"><dd class="mdescRight">Gets the original mouse position. <a href="#ga1"></a><br></dl></ul><hr><h2>Function Documentation</h2><a class="anchor" name="ga1" doxytag="minigui.h::GetOriginalMousePosition"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void GUIAPI GetOriginalMousePosition </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int * </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int * </td> <td class="mdname" nowrap> <em>y</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the original mouse position. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>The pointer used to return the x coordinate of original mouse position. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>The pointer used to return the y coordinate of original mouse position.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>none.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>This function is available when _MISC_MOUSECALIBRATE (option: --enable-mousecalibrate) defined. </dd></dl> </td> </tr></table><a class="anchor" name="ga0" doxytag="minigui.h::SetMouseCalibrationParameters"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> SetMouseCalibrationParameters </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="struct__POINT.htm">POINT</a> * </td> <td class="mdname" nowrap> <em>src_pts</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="el" href="struct__POINT.htm">POINT</a> * </td> <td class="mdname" nowrap> <em>dst_pts</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the parameters for doing mouse calibration. <p>This function set the parameters for doing mouse calibration. You should pass five source points and five destination points.<p>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.<p>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.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>src_pts</em> </td><td>The pointer to an array of five source points. </td></tr> <tr><td valign="top"></td><td valign="top"><em>dst_pts</em> </td><td>The pointer to an array of five destination points.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE for success, FALSE for bad arguments.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>This function is available when _MISC_MOUSECALIBRATE (option: --enable-mousecalibrate) defined. </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:54 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -