wut/kpad_8h_source.html

109 lines
35 KiB
HTML
Raw Normal View History

2019-04-22 10:21:17 +10:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2018-07-26 20:52:03 +10:00
<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"/>
2019-04-22 10:21:17 +10:00
<meta name="generator" content="Doxygen 1.8.15"/>
2018-07-26 20:52:03 +10:00
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2019-04-22 10:21:17 +10:00
<title>wut: /home/ash/src/wut/include/padscore/kpad.h Source File</title>
2018-07-26 20:52:03 +10:00
<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
2019-04-22 10:21:17 +10:00
&#160;<span id="projectnumber">1.0.0-beta8</span>
2018-07-26 20:52:03 +10:00
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2019-04-22 10:21:17 +10:00
<!-- Generated by Doxygen 1.8.15 -->
2018-07-26 20:52:03 +10:00
<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#gga24f9946812e70c194e190b6880d030cca2ae8a8
<div class="ttc" id="wpad_8h_html"><div class="ttname"><a href="wpad_8h.html">wpad.h</a></div></div>
<div class="ttc" id="group__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="group__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>
2019-04-22 10:21:17 +10:00
<div class="ttc" id="group__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>
2018-07-26 20:52:03 +10:00
<div class="ttc" id="group__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>
2019-04-22 10:21:17 +10:00
<div class="ttc" id="group__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>
2018-07-26 20:52:03 +10:00
<div class="ttc" id="group__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="group__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="group__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="group__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="group__padscore__kpad_html_ga59dd0b75518d16750f94e43a89378669"><div class="ttname"><a href="group__padscore__kpad.html#ga59dd0b75518d16750f94e43a89378669">KPADInit</a></div><div class="ttdeci">void KPADInit()</div></div>
2019-04-22 10:21:17 +10:00
<div class="ttc" id="group__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>
2018-07-26 20:52:03 +10:00
<div class="ttc" id="group__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>
2019-04-22 10:21:17 +10:00
<div class="ttc" id="group__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>
2018-07-26 20:52:03 +10:00
<div class="ttc" id="group__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="group__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>
2019-04-22 10:21:17 +10:00
<div class="ttc" id="group__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>
2018-07-26 20:52:03 +10:00
<div class="ttc" id="wut_8h_html"><div class="ttname"><a href="wut_8h.html">wut.h</a></div></div>
<div class="ttc" id="group__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="group__padscore__kpad_html_gga24f9946812e70c194e190b6880d030cca2ae8a84907754a877720861d2816aa63"><div class="ttname"><a href="group__padscore__kpad.html#gga24f9946812e70c194e190b6880d030cca2ae8a84907754a877720861d2816aa63">KPAD_ERROR_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="kpad_8h_source.html#l00023">kpad.h:23</a></div></div>
<div class="ttc" id="group__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="group__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>
2019-04-22 10:21:17 +10:00
<div class="ttc" id="group__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>
2018-07-26 20:52:03 +10:00
<div class="ttc" id="group__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="group__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><!-- fragment --></div><!-- contents -->
<!-- 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"/>
2019-04-22 10:21:17 +10:00
</a> 1.8.15
2018-07-26 20:52:03 +10:00
</small></address>
</body>
</html>