wut/kpad_8h_source.html
2020-03-26 16:49:18 +11:00

249 lines
36 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wut: /home/ash/Code/wut2/include/padscore/kpad.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">wut
&#160;<span id="projectnumber">1.0.0-beta9</span>
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_9bd1a1706ec6277342c779a257ef94a8.html">padscore</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">kpad.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="kpad_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="wut_8h.html">wut.h</a>&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="wpad_8h.html">padscore/wpad.h</a>&gt;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#ga8df093af89d553d541fd99d8c61d2442"> 14</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group__padscore__wpad.html#ga3d9addfad689c9015cdc4243473df107">WPADChan</a> <a class="code" href="group__padscore__kpad.html#ga8df093af89d553d541fd99d8c61d2442">KPADChan</a>;</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#ga30fd569aa5adf56075edc9e971d35bad"> 15</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group__padscore__wpad.html#ga2db2238f03b51e7ea465f48397ec4900">WPADDataFormat</a> <a class="code" href="group__padscore__kpad.html#ga30fd569aa5adf56075edc9e971d35bad">KPADDataFormat</a>;</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#ga2f5ef07b36039e79a2ea8d00e8453eb0"> 16</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group__padscore__wpad.html#gaabe6fcb6ae154b867c0ed874728099f3">WPADExtensionType</a> <a class="code" href="group__padscore__kpad.html#ga2f5ef07b36039e79a2ea8d00e8453eb0">KPADExtensionType</a>;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#ga188dbbdbbe19e39ce3c1b7ae6c76c544"> 18</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a> <a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>;</div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#gad7557ca2a5e0f9d90f0ae4c0a498bcb8"> 19</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a> <a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a>;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#ga24f9946812e70c194e190b6880d030cc"> 21</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group__padscore__kpad.html#ga24f9946812e70c194e190b6880d030cc">KPADError</a></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;{</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#gga24f9946812e70c194e190b6880d030cca2ae8a84907754a877720861d2816aa63"> 23</a></span>&#160; <a class="code" href="group__padscore__kpad.html#gga24f9946812e70c194e190b6880d030cca2ae8a84907754a877720861d2816aa63">KPAD_ERROR_OK</a> = 0,</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;} <a class="code" href="group__padscore__kpad.html#ga24f9946812e70c194e190b6880d030cc">KPADError</a>;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html"> 26</a></span>&#160;<span class="keyword">struct </span><a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;{</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#ad0da36b2558901e21e7a30f6c227a45e"> 28</a></span>&#160; <span class="keywordtype">float</span> <a class="code" href="group__padscore__kpad.html#ad0da36b2558901e21e7a30f6c227a45e">x</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#aa4f0d3eebc3c443f9be81bf48561a217"> 29</a></span>&#160; <span class="keywordtype">float</span> <a class="code" href="group__padscore__kpad.html#aa4f0d3eebc3c443f9be81bf48561a217">y</a>;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;};</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a>, 0x00, x);</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a>, 0x04, y);</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;WUT_CHECK_SIZE(<a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a>, 0x08);</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html"> 35</a></span>&#160;<span class="keyword">struct </span><a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#a640685c2285e7b8a348fff1e0332d0bf"> 38</a></span>&#160; uint32_t <a class="code" href="group__padscore__kpad.html#a640685c2285e7b8a348fff1e0332d0bf">hold</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#acd87cb9526a15b75a88488a2fb33b322"> 41</a></span>&#160; uint32_t <a class="code" href="group__padscore__kpad.html#acd87cb9526a15b75a88488a2fb33b322">trigger</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#aa892f9b747303e5e8a7d81d08f2fff7c"> 44</a></span>&#160; uint32_t <a class="code" href="group__padscore__kpad.html#aa892f9b747303e5e8a7d81d08f2fff7c">release</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; WUT_UNKNOWN_BYTES(5 * 4);</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#afe21caa642c86850fe79ed98bb39d712"> 48</a></span>&#160; <a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a> <a class="code" href="group__padscore__kpad.html#afe21caa642c86850fe79ed98bb39d712">pos</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; WUT_UNKNOWN_BYTES(3 * 4);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#a7519e52603597f1ac4ee8eea1ae8425d"> 52</a></span>&#160; <a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a> <a class="code" href="group__padscore__kpad.html#a7519e52603597f1ac4ee8eea1ae8425d">angle</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; WUT_UNKNOWN_BYTES(8 * 4);</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#a05c631f3036f4e8dfafb19246eed7db8"> 57</a></span>&#160; uint8_t <a class="code" href="group__padscore__kpad.html#a05c631f3036f4e8dfafb19246eed7db8">extensionType</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#abb80db0ecee8b18b2e2d87732b3a6387"> 60</a></span>&#160; int8_t <a class="code" href="group__padscore__kpad.html#abb80db0ecee8b18b2e2d87732b3a6387">error</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#a96f430bba792b649157ec13502afdcc9"> 62</a></span>&#160; uint8_t <a class="code" href="group__padscore__kpad.html#a96f430bba792b649157ec13502afdcc9">posValid</a>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html#a7864fd50d470f893524181b4a59d9828"> 65</a></span>&#160; uint8_t <a class="code" href="group__padscore__kpad.html#a7864fd50d470f893524181b4a59d9828">format</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="comment">// Extension data, check with extensionType to see what is valid to read</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html"> 68</a></span>&#160; <span class="keyword">union</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; {</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="comment">// For WPAD_EXT_NUNCHUK</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html"> 71</a></span>&#160; <span class="keyword">struct</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; {</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a> stick;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; } nunchuck;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="comment">// For WPAD_EXT_CLASSIC</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html"> 77</a></span>&#160; <span class="keyword">struct</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; {</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; uint32_t <a class="code" href="group__padscore__kpad.html#a640685c2285e7b8a348fff1e0332d0bf">hold</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; uint32_t <a class="code" href="group__padscore__kpad.html#acd87cb9526a15b75a88488a2fb33b322">trigger</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; uint32_t <a class="code" href="group__padscore__kpad.html#aa892f9b747303e5e8a7d81d08f2fff7c">release</a>;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a> leftStick;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a> rightStick;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordtype">float</span> leftTrigger;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordtype">float</span> rightTrigger;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; } classic;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="comment">// For WPAD_EXT_PRO_CONTROLLER</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="group__padscore__kpad.html"> 89</a></span>&#160; <span class="keyword">struct</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; {</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; uint32_t <a class="code" href="group__padscore__kpad.html#a640685c2285e7b8a348fff1e0332d0bf">hold</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; uint32_t <a class="code" href="group__padscore__kpad.html#acd87cb9526a15b75a88488a2fb33b322">trigger</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; uint32_t <a class="code" href="group__padscore__kpad.html#aa892f9b747303e5e8a7d81d08f2fff7c">release</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a> leftStick;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <a class="code" href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a> rightStick;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; int32_t charging;</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; int32_t wired;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; } pro;</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; WUT_UNKNOWN_BYTES(20 * 4);</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; };</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; WUT_UNKNOWN_BYTES(16 * 4);</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;};</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x00, hold);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x04, trigger);</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x08, release);</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x20, pos);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x34, angle);</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x5C, extensionType);</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x5D, error);</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x5E, posValid);</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x5F, format);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="comment">// For WPAD_EXT_NUNCHUK</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x60, nunchuck.stick);</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;<span class="comment">// For WPAD_EXT_CLASSIC</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x60, classic.<a class="code" href="group__padscore__kpad.html#a640685c2285e7b8a348fff1e0332d0bf">hold</a>);</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x64, classic.<a class="code" href="group__padscore__kpad.html#acd87cb9526a15b75a88488a2fb33b322">trigger</a>);</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x68, classic.<a class="code" href="group__padscore__kpad.html#aa892f9b747303e5e8a7d81d08f2fff7c">release</a>);</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x6C, classic.leftStick);</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x74, classic.rightStick);</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x7C, classic.leftTrigger);</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x80, classic.rightTrigger);</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="comment">// For WPAD_EXT_PRO_CONTROLLER</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x60, pro.<a class="code" href="group__padscore__kpad.html#a640685c2285e7b8a348fff1e0332d0bf">hold</a>);</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x64, pro.<a class="code" href="group__padscore__kpad.html#acd87cb9526a15b75a88488a2fb33b322">trigger</a>);</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x68, pro.<a class="code" href="group__padscore__kpad.html#aa892f9b747303e5e8a7d81d08f2fff7c">release</a>);</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x6C, pro.leftStick);</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x74, pro.rightStick);</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x7C, pro.charging);</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;WUT_CHECK_OFFSET(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0x80, pro.wired);</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;WUT_CHECK_SIZE(<a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a>, 0xF0);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<a class="code" href="group__padscore__kpad.html#ga59dd0b75518d16750f94e43a89378669">KPADInit</a>();</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;int32_t</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<a class="code" href="group__padscore__kpad.html#ga94592ff4811fb9b3b7ec2f4f75cda9b4">KPADRead</a>(<a class="code" href="group__padscore__kpad.html#ga8df093af89d553d541fd99d8c61d2442">KPADChan</a> chan,</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a> *data,</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; uint32_t size);</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;int32_t</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<a class="code" href="group__padscore__kpad.html#ga038556150e03e5ba9bae3aa4a554acf7">KPADReadEx</a>(<a class="code" href="group__padscore__kpad.html#ga8df093af89d553d541fd99d8c61d2442">KPADChan</a> chan,</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <a class="code" href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a> *data,</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; uint32_t size,</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; int32_t *error);</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;}</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; </div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="agroup__padscore__wpad_html_ga3d9addfad689c9015cdc4243473df107"><div class="ttname"><a href="group__padscore__wpad.html#ga3d9addfad689c9015cdc4243473df107">WPADChan</a></div><div class="ttdeci">WPADChan</div><div class="ttdef"><b>Definition:</b> <a href="wpad_8h_source.html#l00016">wpad.h:16</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_ga24f9946812e70c194e190b6880d030cc"><div class="ttname"><a href="group__padscore__kpad.html#ga24f9946812e70c194e190b6880d030cc">KPADError</a></div><div class="ttdeci">KPADError</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00021">kpad.h:21</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_ga2f5ef07b36039e79a2ea8d00e8453eb0"><div class="ttname"><a href="group__padscore__kpad.html#ga2f5ef07b36039e79a2ea8d00e8453eb0">KPADExtensionType</a></div><div class="ttdeci">enum WPADExtensionType KPADExtensionType</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00016">kpad.h:16</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_ga30fd569aa5adf56075edc9e971d35bad"><div class="ttname"><a href="group__padscore__kpad.html#ga30fd569aa5adf56075edc9e971d35bad">KPADDataFormat</a></div><div class="ttdeci">enum WPADDataFormat KPADDataFormat</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00015">kpad.h:15</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_structKPADStatus"><div class="ttname"><a href="group__padscore__kpad.html#structKPADStatus">KPADStatus</a></div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00035">kpad.h:35</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_aa892f9b747303e5e8a7d81d08f2fff7c"><div class="ttname"><a href="group__padscore__kpad.html#aa892f9b747303e5e8a7d81d08f2fff7c">KPADStatus::release</a></div><div class="ttdeci">uint32_t release</div><div class="ttdoc">Indicates what KPADButtons have been released since last sample.</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00044">kpad.h:44</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_ga8df093af89d553d541fd99d8c61d2442"><div class="ttname"><a href="group__padscore__kpad.html#ga8df093af89d553d541fd99d8c61d2442">KPADChan</a></div><div class="ttdeci">enum WPADChan KPADChan</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00014">kpad.h:14</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_ga59dd0b75518d16750f94e43a89378669"><div class="ttname"><a href="group__padscore__kpad.html#ga59dd0b75518d16750f94e43a89378669">KPADInit</a></div><div class="ttdeci">void KPADInit()</div></div>
<div class="ttc" id="agroup__padscore__kpad_html_abb80db0ecee8b18b2e2d87732b3a6387"><div class="ttname"><a href="group__padscore__kpad.html#abb80db0ecee8b18b2e2d87732b3a6387">KPADStatus::error</a></div><div class="ttdeci">int8_t error</div><div class="ttdoc">Value from KPADError.</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00060">kpad.h:60</a></div></div>
<div class="ttc" id="agroup__padscore__wpad_html_gaabe6fcb6ae154b867c0ed874728099f3"><div class="ttname"><a href="group__padscore__wpad.html#gaabe6fcb6ae154b867c0ed874728099f3">WPADExtensionType</a></div><div class="ttdeci">WPADExtensionType</div><div class="ttdef"><b>Definition:</b> <a href="wpad_8h_source.html#l00029">wpad.h:29</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_gga24f9946812e70c194e190b6880d030cca2ae8a84907754a877720861d2816aa63"><div class="ttname"><a href="group__padscore__kpad.html#gga24f9946812e70c194e190b6880d030cca2ae8a84907754a877720861d2816aa63">KPAD_ERROR_OK</a></div><div class="ttdeci">@ KPAD_ERROR_OK</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00023">kpad.h:23</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_aa4f0d3eebc3c443f9be81bf48561a217"><div class="ttname"><a href="group__padscore__kpad.html#aa4f0d3eebc3c443f9be81bf48561a217">KPADVec2D::y</a></div><div class="ttdeci">float y</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00029">kpad.h:29</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_a7519e52603597f1ac4ee8eea1ae8425d"><div class="ttname"><a href="group__padscore__kpad.html#a7519e52603597f1ac4ee8eea1ae8425d">KPADStatus::angle</a></div><div class="ttdeci">KPADVec2D angle</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00052">kpad.h:52</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_structKPADVec2D"><div class="ttname"><a href="group__padscore__kpad.html#structKPADVec2D">KPADVec2D</a></div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00026">kpad.h:26</a></div></div>
<div class="ttc" id="awpad_8h_html"><div class="ttname"><a href="wpad_8h.html">wpad.h</a></div></div>
<div class="ttc" id="awut_8h_html"><div class="ttname"><a href="wut_8h.html">wut.h</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_a7864fd50d470f893524181b4a59d9828"><div class="ttname"><a href="group__padscore__kpad.html#a7864fd50d470f893524181b4a59d9828">KPADStatus::format</a></div><div class="ttdeci">uint8_t format</div><div class="ttdoc">Value from KPADDataFormat.</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00065">kpad.h:65</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_a640685c2285e7b8a348fff1e0332d0bf"><div class="ttname"><a href="group__padscore__kpad.html#a640685c2285e7b8a348fff1e0332d0bf">KPADStatus::hold</a></div><div class="ttdeci">uint32_t hold</div><div class="ttdoc">Indicates what KPADButtons are held down.</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00038">kpad.h:38</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_ga94592ff4811fb9b3b7ec2f4f75cda9b4"><div class="ttname"><a href="group__padscore__kpad.html#ga94592ff4811fb9b3b7ec2f4f75cda9b4">KPADRead</a></div><div class="ttdeci">int32_t KPADRead(KPADChan chan, KPADStatus *data, uint32_t size)</div></div>
<div class="ttc" id="agroup__padscore__wpad_html_ga2db2238f03b51e7ea465f48397ec4900"><div class="ttname"><a href="group__padscore__wpad.html#ga2db2238f03b51e7ea465f48397ec4900">WPADDataFormat</a></div><div class="ttdeci">WPADDataFormat</div><div class="ttdef"><b>Definition:</b> <a href="wpad_8h_source.html#l00024">wpad.h:24</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_afe21caa642c86850fe79ed98bb39d712"><div class="ttname"><a href="group__padscore__kpad.html#afe21caa642c86850fe79ed98bb39d712">KPADStatus::pos</a></div><div class="ttdeci">KPADVec2D pos</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00048">kpad.h:48</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_a05c631f3036f4e8dfafb19246eed7db8"><div class="ttname"><a href="group__padscore__kpad.html#a05c631f3036f4e8dfafb19246eed7db8">KPADStatus::extensionType</a></div><div class="ttdeci">uint8_t extensionType</div><div class="ttdoc">Value from KPADExtensionType.</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00057">kpad.h:57</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_ad0da36b2558901e21e7a30f6c227a45e"><div class="ttname"><a href="group__padscore__kpad.html#ad0da36b2558901e21e7a30f6c227a45e">KPADVec2D::x</a></div><div class="ttdeci">float x</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00028">kpad.h:28</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_ga038556150e03e5ba9bae3aa4a554acf7"><div class="ttname"><a href="group__padscore__kpad.html#ga038556150e03e5ba9bae3aa4a554acf7">KPADReadEx</a></div><div class="ttdeci">int32_t KPADReadEx(KPADChan chan, KPADStatus *data, uint32_t size, int32_t *error)</div></div>
<div class="ttc" id="agroup__padscore__kpad_html_a96f430bba792b649157ec13502afdcc9"><div class="ttname"><a href="group__padscore__kpad.html#a96f430bba792b649157ec13502afdcc9">KPADStatus::posValid</a></div><div class="ttdeci">uint8_t posValid</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00062">kpad.h:62</a></div></div>
<div class="ttc" id="agroup__padscore__kpad_html_acd87cb9526a15b75a88488a2fb33b322"><div class="ttname"><a href="group__padscore__kpad.html#acd87cb9526a15b75a88488a2fb33b322">KPADStatus::trigger</a></div><div class="ttdeci">uint32_t trigger</div><div class="ttdoc">Indicates what KPADButtons have been pressed since last sample.</div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00041">kpad.h:41</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>