mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
1775 lines
86 KiB
HTML
1775 lines
86 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.7"/>
|
|
<title>USB Host Shield 2.0: WII Class Reference</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/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { searchBox.OnSelectItem(0); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="imageStyle.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 style="padding-left: 0.5em;">
|
|
<div id="projectname">USB Host Shield 2.0
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.7 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="classes.html"><span>Class Index</span></a></li>
|
|
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Pages</a></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><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pub-attribs">Public Attributes</a> |
|
|
<a href="class_w_i_i-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">WII Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><code>#include <<a class="el" href="_wii_8h_source.html">Wii.h</a>></code></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for WII:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="class_w_i_i__inherit__graph.png" border="0" usemap="#_w_i_i_inherit__map" alt="Inheritance graph"/></div>
|
|
<map name="_w_i_i_inherit__map" id="_w_i_i_inherit__map">
|
|
<area shape="rect" id="node2" href="class_bluetooth_service.html" title="BluetoothService" alt="" coords="5,5,127,31"/></map>
|
|
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
|
<div class="dynheader">
|
|
Collaboration diagram for WII:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="class_w_i_i__coll__graph.png" border="0" usemap="#_w_i_i_coll__map" alt="Collaboration graph"/></div>
|
|
<map name="_w_i_i_coll__map" id="_w_i_i_coll__map">
|
|
<area shape="rect" id="node2" href="class_bluetooth_service.html" title="BluetoothService" alt="" coords="5,5,127,31"/></map>
|
|
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a6597cb0e240a8ccb4ebdb236daef712e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a6597cb0e240a8ccb4ebdb236daef712e">WII</a> (<a class="el" href="class_b_t_d.html">BTD</a> *p, bool <a class="el" href="class_w_i_i.html#a39c3101b26cc549d5258018b3d05c608">pair</a>=false)</td></tr>
|
|
<tr class="separator:a6597cb0e240a8ccb4ebdb236daef712e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">BluetoothService implementation</div></td></tr>
|
|
<tr class="memitem:a81e1eb4d9ef9999a84e71d764d54dff7"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a81e1eb4d9ef9999a84e71d764d54dff7">ACLData</a> (uint8_t *ACLData)</td></tr>
|
|
<tr class="separator:a81e1eb4d9ef9999a84e71d764d54dff7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac5cd06f3e9aa2a0d9b9691f00c047e72"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ac5cd06f3e9aa2a0d9b9691f00c047e72">Run</a> ()</td></tr>
|
|
<tr class="separator:ac5cd06f3e9aa2a0d9b9691f00c047e72"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a769ee2f9a0088da097438bc3cc677f7c"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a769ee2f9a0088da097438bc3cc677f7c">Reset</a> ()</td></tr>
|
|
<tr class="separator:a769ee2f9a0088da097438bc3cc677f7c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aabe4780f258dada1c0564a4ac7607370"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#aabe4780f258dada1c0564a4ac7607370">disconnect</a> ()</td></tr>
|
|
<tr class="separator:aabe4780f258dada1c0564a4ac7607370"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Wii Controller functions</div></td></tr>
|
|
<tr class="memitem:a7b183fe1809c1c595438e930b8f3f4de"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a7b183fe1809c1c595438e930b8f3f4de">getButtonPress</a> (<a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b)</td></tr>
|
|
<tr class="separator:a7b183fe1809c1c595438e930b8f3f4de"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac94e8b9ce6d3f914f0e3ee4fba82efa3"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ac94e8b9ce6d3f914f0e3ee4fba82efa3">getButtonClick</a> (<a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b)</td></tr>
|
|
<tr class="separator:ac94e8b9ce6d3f914f0e3ee4fba82efa3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a39c3101b26cc549d5258018b3d05c608"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a39c3101b26cc549d5258018b3d05c608">pair</a> (void)</td></tr>
|
|
<tr class="separator:a39c3101b26cc549d5258018b3d05c608"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8e34abf62a9631ca3efba0150ca91b93"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a8e34abf62a9631ca3efba0150ca91b93">getAnalogHat</a> (<a class="el" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4">HatEnum</a> a)</td></tr>
|
|
<tr class="separator:a8e34abf62a9631ca3efba0150ca91b93"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9f88f608bd002270797dd3bc25900f1e"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a9f88f608bd002270797dd3bc25900f1e">getAnalogHat</a> (<a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a> a)</td></tr>
|
|
<tr class="separator:a9f88f608bd002270797dd3bc25900f1e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a748172bd57804856594ea8e21601319e"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a748172bd57804856594ea8e21601319e">getPitch</a> ()</td></tr>
|
|
<tr class="separator:a748172bd57804856594ea8e21601319e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6ac037d884f97319892e8671ef070c03"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a6ac037d884f97319892e8671ef070c03">getRoll</a> ()</td></tr>
|
|
<tr class="separator:a6ac037d884f97319892e8671ef070c03"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae92e129c54c8131f4a2c55582dfd2f11"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ae92e129c54c8131f4a2c55582dfd2f11">getYaw</a> ()</td></tr>
|
|
<tr class="separator:ae92e129c54c8131f4a2c55582dfd2f11"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6e97bfcfb134b63d7190ba1bc326e1d3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a6e97bfcfb134b63d7190ba1bc326e1d3">setAllOff</a> ()</td></tr>
|
|
<tr class="separator:a6e97bfcfb134b63d7190ba1bc326e1d3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2c5c32841b020b248f757cb793acb936"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a2c5c32841b020b248f757cb793acb936">setRumbleOff</a> ()</td></tr>
|
|
<tr class="separator:a2c5c32841b020b248f757cb793acb936"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0d9c869bd3677c4488a586c38558a137"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a0d9c869bd3677c4488a586c38558a137">setRumbleOn</a> ()</td></tr>
|
|
<tr class="separator:a0d9c869bd3677c4488a586c38558a137"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a841396b533cccccb05db37d35f6fef9c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a841396b533cccccb05db37d35f6fef9c">setRumbleToggle</a> ()</td></tr>
|
|
<tr class="separator:a841396b533cccccb05db37d35f6fef9c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae7e07f929fba8f0ff061a1405baa2b58"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ae7e07f929fba8f0ff061a1405baa2b58">setLedRaw</a> (uint8_t value)</td></tr>
|
|
<tr class="separator:ae7e07f929fba8f0ff061a1405baa2b58"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae3eb7942181a9c9e681e18bd5c8eaef4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ae3eb7942181a9c9e681e18bd5c8eaef4">setLedOff</a> ()</td></tr>
|
|
<tr class="separator:ae3eb7942181a9c9e681e18bd5c8eaef4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a60e552c026ac99f2c74b9c3eb9c3a7c9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a60e552c026ac99f2c74b9c3eb9c3a7c9">setLedOff</a> (<a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a)</td></tr>
|
|
<tr class="separator:a60e552c026ac99f2c74b9c3eb9c3a7c9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a38507c76e5d7375a7971bc3a17b87338"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a38507c76e5d7375a7971bc3a17b87338">setLedOn</a> (<a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a)</td></tr>
|
|
<tr class="separator:a38507c76e5d7375a7971bc3a17b87338"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8e81eb7d2d78680df0dee1869695ff05"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a8e81eb7d2d78680df0dee1869695ff05">setLedToggle</a> (<a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a)</td></tr>
|
|
<tr class="separator:a8e81eb7d2d78680df0dee1869695ff05"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5d3b4a33ebc2ca9ebb154e10a05dbdd4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a5d3b4a33ebc2ca9ebb154e10a05dbdd4">setLedStatus</a> ()</td></tr>
|
|
<tr class="separator:a5d3b4a33ebc2ca9ebb154e10a05dbdd4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae946f7d6e9ce89fb083f5f138c0736c2"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ae946f7d6e9ce89fb083f5f138c0736c2">getBatteryLevel</a> ()</td></tr>
|
|
<tr class="separator:ae946f7d6e9ce89fb083f5f138c0736c2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8e9ac1d379db5c07c478401046a1c0ac"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a8e9ac1d379db5c07c478401046a1c0ac">getWiiState</a> ()</td></tr>
|
|
<tr class="separator:a8e9ac1d379db5c07c478401046a1c0ac"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af384f13c59fee08a4be0c541e6a9b387"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#af384f13c59fee08a4be0c541e6a9b387">attachOnInit</a> (void(*funcOnInit)(void))</td></tr>
|
|
<tr class="separator:af384f13c59fee08a4be0c541e6a9b387"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
|
|
<tr class="memitem:a2fb34f50b5374c9442af263f61595af4"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a2fb34f50b5374c9442af263f61595af4">getWiimotePitch</a> ()</td></tr>
|
|
<tr class="separator:a2fb34f50b5374c9442af263f61595af4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9a58b857c84fa82152be7983efe70f60"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a9a58b857c84fa82152be7983efe70f60">getWiimoteRoll</a> ()</td></tr>
|
|
<tr class="separator:a9a58b857c84fa82152be7983efe70f60"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
|
|
<tr class="memitem:a052ed48b0eea76fbd3858024ce962c6f"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a052ed48b0eea76fbd3858024ce962c6f">getNunchuckPitch</a> ()</td></tr>
|
|
<tr class="separator:a052ed48b0eea76fbd3858024ce962c6f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a73e82829c5d13a4117ecd6d23b6c3d98"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a73e82829c5d13a4117ecd6d23b6c3d98">getNunchuckRoll</a> ()</td></tr>
|
|
<tr class="separator:a73e82829c5d13a4117ecd6d23b6c3d98"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Wiimote IR camera functions</div></td></tr>
|
|
<tr><td colspan="2"><div class="groupText"><p>You will have to set <a class="el" href="settings_8h.html#a251a8e974ddd0680dbcefaa3a4ae9ae8">ENABLE_WII_IR_CAMERA</a> in <a class="el" href="settings_8h.html">settings.h</a> to 1 in order use the IR camera. </p>
|
|
</div></td></tr>
|
|
<tr class="memitem:a3505abbc01c71d134ce301dfb7c0c5b5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a3505abbc01c71d134ce301dfb7c0c5b5">IRinitialize</a> ()</td></tr>
|
|
<tr class="separator:a3505abbc01c71d134ce301dfb7c0c5b5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af380eb3bf65ce33a60aaf35f74a44f6d"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#af380eb3bf65ce33a60aaf35f74a44f6d">getIRx1</a> ()</td></tr>
|
|
<tr class="separator:af380eb3bf65ce33a60aaf35f74a44f6d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a341b9a50bfdb18af9c66a3079e5804d9"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a341b9a50bfdb18af9c66a3079e5804d9">getIRy1</a> ()</td></tr>
|
|
<tr class="separator:a341b9a50bfdb18af9c66a3079e5804d9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2d8fd822e6e9c271d59c71dc7b757421"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a2d8fd822e6e9c271d59c71dc7b757421">getIRs1</a> ()</td></tr>
|
|
<tr class="separator:a2d8fd822e6e9c271d59c71dc7b757421"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a551e48a50c7b60722e807e68ae25f084"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a551e48a50c7b60722e807e68ae25f084">getIRx2</a> ()</td></tr>
|
|
<tr class="separator:a551e48a50c7b60722e807e68ae25f084"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae148de3c99b3fb4ef65ea62d2848df7d"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ae148de3c99b3fb4ef65ea62d2848df7d">getIRy2</a> ()</td></tr>
|
|
<tr class="separator:ae148de3c99b3fb4ef65ea62d2848df7d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:accf6ca623ffe93b3c78aaf60c7fd1f46"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#accf6ca623ffe93b3c78aaf60c7fd1f46">getIRs2</a> ()</td></tr>
|
|
<tr class="separator:accf6ca623ffe93b3c78aaf60c7fd1f46"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5648a03968d0c2331867f9b7bcaa3e3e"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a5648a03968d0c2331867f9b7bcaa3e3e">getIRx3</a> ()</td></tr>
|
|
<tr class="separator:a5648a03968d0c2331867f9b7bcaa3e3e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5e778f879c6d0a73a94bd61e42d05b8d"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a5e778f879c6d0a73a94bd61e42d05b8d">getIRy3</a> ()</td></tr>
|
|
<tr class="separator:a5e778f879c6d0a73a94bd61e42d05b8d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a05841e1975803d561f80aeb3dd0a4a1e"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a05841e1975803d561f80aeb3dd0a4a1e">getIRs3</a> ()</td></tr>
|
|
<tr class="separator:a05841e1975803d561f80aeb3dd0a4a1e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7a92d63c7cf9d3d5b38bdb9ad4d7ef66"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a7a92d63c7cf9d3d5b38bdb9ad4d7ef66">getIRx4</a> ()</td></tr>
|
|
<tr class="separator:a7a92d63c7cf9d3d5b38bdb9ad4d7ef66"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a759837b933f63ce7c3235639be29250a"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a759837b933f63ce7c3235639be29250a">getIRy4</a> ()</td></tr>
|
|
<tr class="separator:a759837b933f63ce7c3235639be29250a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aef56b9f37422b0a41642b39d10db0735"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#aef56b9f37422b0a41642b39d10db0735">getIRs4</a> ()</td></tr>
|
|
<tr class="separator:aef56b9f37422b0a41642b39d10db0735"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0a444d7e348026e062751cf723877e8f"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a0a444d7e348026e062751cf723877e8f">isIRCameraEnabled</a> ()</td></tr>
|
|
<tr class="separator:a0a444d7e348026e062751cf723877e8f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
|
|
Public Attributes</h2></td></tr>
|
|
<tr class="memitem:af61f57d34b81f2a878f0126a074e3af4"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#af61f57d34b81f2a878f0126a074e3af4">gyroPitch</a></td></tr>
|
|
<tr class="separator:af61f57d34b81f2a878f0126a074e3af4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2a0e4745bff7cfec644bcebe984c2bc8"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a2a0e4745bff7cfec644bcebe984c2bc8">gyroRoll</a></td></tr>
|
|
<tr class="separator:a2a0e4745bff7cfec644bcebe984c2bc8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a988db5b35cfc3c543f93f49587a50e62"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a988db5b35cfc3c543f93f49587a50e62">gyroYaw</a></td></tr>
|
|
<tr class="separator:a988db5b35cfc3c543f93f49587a50e62"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
|
|
<tr class="memitem:ae25a8ea1b0713801e0209e795b4596fa"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ae25a8ea1b0713801e0209e795b4596fa">wiimoteConnected</a></td></tr>
|
|
<tr class="separator:ae25a8ea1b0713801e0209e795b4596fa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7cb4cec343c65fd350e6b05043d7f1a8"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a7cb4cec343c65fd350e6b05043d7f1a8">nunchuckConnected</a></td></tr>
|
|
<tr class="separator:a7cb4cec343c65fd350e6b05043d7f1a8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a72bd4fad2e524276712a154b8cc2a16c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a72bd4fad2e524276712a154b8cc2a16c">motionPlusConnected</a></td></tr>
|
|
<tr class="separator:a72bd4fad2e524276712a154b8cc2a16c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a461f5b7a5f2bc874e107fc776c284b16"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a461f5b7a5f2bc874e107fc776c284b16">wiiUProControllerConnected</a></td></tr>
|
|
<tr class="separator:a461f5b7a5f2bc874e107fc776c284b16"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
|
|
<tr class="memitem:afaafee11ac191ba43b6a2b989cdd137c"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#afaafee11ac191ba43b6a2b989cdd137c">accXwiimote</a></td></tr>
|
|
<tr class="separator:afaafee11ac191ba43b6a2b989cdd137c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa2c14275d9e482e6add06cb34ccf1197"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#aa2c14275d9e482e6add06cb34ccf1197">accYwiimote</a></td></tr>
|
|
<tr class="separator:aa2c14275d9e482e6add06cb34ccf1197"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acdebdaab544ffcecf8ab09adacbd28c8"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#acdebdaab544ffcecf8ab09adacbd28c8">accZwiimote</a></td></tr>
|
|
<tr class="separator:acdebdaab544ffcecf8ab09adacbd28c8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3a13b5931284d5bcd6647f681cda95b4"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a3a13b5931284d5bcd6647f681cda95b4">accXnunchuck</a></td></tr>
|
|
<tr class="separator:a3a13b5931284d5bcd6647f681cda95b4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae657585a560e9d214e6c0219f8b47aeb"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ae657585a560e9d214e6c0219f8b47aeb">accYnunchuck</a></td></tr>
|
|
<tr class="separator:ae657585a560e9d214e6c0219f8b47aeb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a42af5743d2e3c2dbc01ea0b5531cc7c6"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a42af5743d2e3c2dbc01ea0b5531cc7c6">accZnunchuck</a></td></tr>
|
|
<tr class="separator:a42af5743d2e3c2dbc01ea0b5531cc7c6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
|
|
<tr class="memitem:acfb290a86aa9a65dd4ae84d02e3c6ded"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#acfb290a86aa9a65dd4ae84d02e3c6ded">pitchGyroSpeed</a></td></tr>
|
|
<tr class="separator:acfb290a86aa9a65dd4ae84d02e3c6ded"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3fb552c6ad486e23434dcb347a2a4b84"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a3fb552c6ad486e23434dcb347a2a4b84">rollGyroSpeed</a></td></tr>
|
|
<tr class="separator:a3fb552c6ad486e23434dcb347a2a4b84"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad5df436cc5d073f26bf3ea5c60d788d6"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ad5df436cc5d073f26bf3ea5c60d788d6">yawGyroSpeed</a></td></tr>
|
|
<tr class="separator:ad5df436cc5d073f26bf3ea5c60d788d6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
|
|
<tr class="memitem:aea6ce6f3222df3e547e9957673c7a07a"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#aea6ce6f3222df3e547e9957673c7a07a">pitchGyroScale</a></td></tr>
|
|
<tr class="separator:aea6ce6f3222df3e547e9957673c7a07a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6c0971ae4c9ab752888a5871020c8331"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a6c0971ae4c9ab752888a5871020c8331">rollGyroScale</a></td></tr>
|
|
<tr class="separator:a6c0971ae4c9ab752888a5871020c8331"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0694969a30092b9b1dcb26120c7cff73"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a0694969a30092b9b1dcb26120c7cff73">yawGyroScale</a></td></tr>
|
|
<tr class="separator:a0694969a30092b9b1dcb26120c7cff73"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
|
|
<tr class="memitem:ab813b65548e827f41a5192fcc34056ea"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ab813b65548e827f41a5192fcc34056ea">gyroYawRaw</a></td></tr>
|
|
<tr class="separator:ab813b65548e827f41a5192fcc34056ea"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0784c779ebeae2d459996c35a54ee3b8"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a0784c779ebeae2d459996c35a54ee3b8">gyroRollRaw</a></td></tr>
|
|
<tr class="separator:a0784c779ebeae2d459996c35a54ee3b8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a749ea9dd39ba9a5320c5b24ce93bc544"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a749ea9dd39ba9a5320c5b24ce93bc544">gyroPitchRaw</a></td></tr>
|
|
<tr class="separator:a749ea9dd39ba9a5320c5b24ce93bc544"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
|
|
<tr class="memitem:ad4f0d2456c56414f9b8013b85a1ee7d2"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#ad4f0d2456c56414f9b8013b85a1ee7d2">gyroYawZero</a></td></tr>
|
|
<tr class="separator:ad4f0d2456c56414f9b8013b85a1ee7d2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a10d91cd5d73bc655be776b44d27004c9"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#a10d91cd5d73bc655be776b44d27004c9">gyroRollZero</a></td></tr>
|
|
<tr class="separator:a10d91cd5d73bc655be776b44d27004c9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abbc31ecd4495d70258cfa095e34cb3c3"><td class="memItemLeft" align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html#abbc31ecd4495d70258cfa095e34cb3c3">gyroPitchZero</a></td></tr>
|
|
<tr class="separator:abbc31ecd4495d70258cfa095e34cb3c3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>This <a class="el" href="class_bluetooth_service.html">BluetoothService</a> class implements support for the Wiimote including the Nunchuck and Motion Plus extension.</p>
|
|
<p>It also support the Wii U Pro Controller. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00047">47</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="a6597cb0e240a8ccb4ebdb236daef712e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">WII::WII </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="class_b_t_d.html">BTD</a> * </td>
|
|
<td class="paramname"><em>p</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>pair</em> = <code>false</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Constructor for the <a class="el" href="class_w_i_i.html">WII</a> class. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">p</td><td>Pointer to <a class="el" href="class_b_t_d.html">BTD</a> class instance. </td></tr>
|
|
<tr><td class="paramname">pair</td><td>Set this to true in order to pair with the Wiimote. If the argument is omitted then it won't pair with it. One can use <a class="el" href="_b_t_d_8h.html#a8f0b5b0dedaf5c25c4887f03ebfdd425">PAIR</a> to set it to true. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00085">85</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a class="anchor" id="a81e1eb4d9ef9999a84e71d764d54dff7"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::ACLData </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint8_t * </td>
|
|
<td class="paramname"><em>ACLData</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Used to pass acldata to the services. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">ACLData</td><td>Incoming acldata. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Reimplemented from <a class="el" href="class_bluetooth_service.html#a8dc98310fe481357eaa86c53e49af113">BluetoothService</a>.</p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00135">135</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac5cd06f3e9aa2a0d9b9691f00c047e72"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::Run </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Used to run part of the state machine. </p>
|
|
|
|
<p>Reimplemented from <a class="el" href="class_bluetooth_service.html#a680692ff13cb37eb81ddbb74bc9e0383">BluetoothService</a>.</p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00684">684</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a769ee2f9a0088da097438bc3cc677f7c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::Reset </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Use this to reset the service. </p>
|
|
|
|
<p>Reimplemented from <a class="el" href="class_bluetooth_service.html#a1dff7caf251f1d8a5f358b368445cb48">BluetoothService</a>.</p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00104">104</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aabe4780f258dada1c0564a4ac7607370"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::disconnect </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Used this to disconnect any of the controllers. </p>
|
|
|
|
<p>Reimplemented from <a class="el" href="class_bluetooth_service.html#a66ee2f09c6087b82e3920c3d652a99b2">BluetoothService</a>.</p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00118">118</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7b183fe1809c1c595438e930b8f3f4de"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool WII::getButtonPress </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> </td>
|
|
<td class="paramname"><em>b</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>getButtonPress(Button b) will return true as long as the button is held down.</p>
|
|
<p>While getButtonClick(Button b) will only return it once.</p>
|
|
<p>So you instance if you need to increase a variable once you would use getButtonClick(Button b), but if you need to drive a robot forward you would use getButtonPress(Button b). </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">b</td><td><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> to read. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_w_i_i.html#a7b183fe1809c1c595438e930b8f3f4de">getButtonPress(ButtonEnum b)</a> will return a true as long as a button is held down, while <a class="el" href="class_w_i_i.html#ac94e8b9ce6d3f914f0e3ee4fba82efa3">getButtonClick(ButtonEnum b)</a> will return true once for each button press. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l01041">1041</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac94e8b9ce6d3f914f0e3ee4fba82efa3"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool WII::getButtonClick </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> </td>
|
|
<td class="paramname"><em>b</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>getButtonPress(Button b) will return true as long as the button is held down.</p>
|
|
<p>While getButtonClick(Button b) will only return it once.</p>
|
|
<p>So you instance if you need to increase a variable once you would use getButtonClick(Button b), but if you need to drive a robot forward you would use getButtonPress(Button b). </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">b</td><td><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> to read. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_w_i_i.html#a7b183fe1809c1c595438e930b8f3f4de">getButtonPress(ButtonEnum b)</a> will return a true as long as a button is held down, while <a class="el" href="class_w_i_i.html#ac94e8b9ce6d3f914f0e3ee4fba82efa3">getButtonClick(ButtonEnum b)</a> will return true once for each button press. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l01048">1048</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a39c3101b26cc549d5258018b3d05c608"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::pair </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Call this to start the paring sequence with a controller </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00089">89</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8e34abf62a9631ca3efba0150ca91b93"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint8_t WII::getAnalogHat </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4">HatEnum</a> </td>
|
|
<td class="paramname"><em>a</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Used to read the joystick of the Nunchuck. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">a</td><td>Either <a class="el" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4aed1a7a35bf1b9c1003fbe3dd4a61a06d">HatX</a> or <a class="el" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4ae2ac743b5ba1752933e09f1dac48d97b">HatY</a>. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Return the analog value in the range from approximately 25-230. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l01059">1059</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9f88f608bd002270797dd3bc25900f1e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::getAnalogHat </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a> </td>
|
|
<td class="paramname"><em>a</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Used to read the joystick of the Wii U Pro Controller. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">a</td><td>Either <a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a383cb8895dd296b7f69ce845ed16b0ca">LeftHatX</a>, <a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093af3f3925efa9762c4e9e71ac7da7a94a3">LeftHatY</a>, <a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093aaeb027a0ae5bbc6ba25e1c78a6486c7b">RightHatX</a> or <a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a7f1fb2db5381286691f4dec179ed5d5a">RightHatY</a>. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Return the analog value in the range from approximately 800-3200. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l01071">1071</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a748172bd57804856594ea8e21601319e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::getPitch </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Pitch calculated from the Wiimote. A complimentary filter is used if the Motion Plus is connected. </p><dl class="section return"><dt>Returns</dt><dd>Pitch in the range from 0-360. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00110">110</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6ac037d884f97319892e8671ef070c03"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::getRoll </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Roll calculated from the Wiimote. A complimentary filter is used if the Motion Plus is connected. </p><dl class="section return"><dt>Returns</dt><dd>Roll in the range from 0-360. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00120">120</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae92e129c54c8131f4a2c55582dfd2f11"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::getYaw </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>This is the yaw calculated by the gyro.</p>
|
|
<p><b>NOTE:</b> This angle will drift a lot and is only available if the Motion Plus extension is connected. </p><dl class="section return"><dt>Returns</dt><dd>The angle calculated using the gyro. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00132">132</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6e97bfcfb134b63d7190ba1bc326e1d3"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::setAllOff </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Used to set all LEDs and rumble off. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00854">854</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2c5c32841b020b248f757cb793acb936"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::setRumbleOff </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Turn off rumble. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00860">860</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0d9c869bd3677c4488a586c38558a137"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::setRumbleOn </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Turn on rumble. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00866">866</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a841396b533cccccb05db37d35f6fef9c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::setRumbleToggle </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Toggle rumble. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00872">872</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae7e07f929fba8f0ff061a1405baa2b58"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::setLedRaw </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>value</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Set LED value without using the <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">value</td><td>See: <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00878">878</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae3eb7942181a9c9e681e18bd5c8eaef4"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::setLedOff </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Turn all LEDs off. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00152">152</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a60e552c026ac99f2c74b9c3eb9c3a7c9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::setLedOff </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> </td>
|
|
<td class="paramname"><em>a</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Turn the specific <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> off. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">a</td><td>The <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> to turn off. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00884">884</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a38507c76e5d7375a7971bc3a17b87338"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::setLedOn </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> </td>
|
|
<td class="paramname"><em>a</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Turn the specific <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> on. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">a</td><td>The <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> to turn on. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00890">890</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8e81eb7d2d78680df0dee1869695ff05"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::setLedToggle </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> </td>
|
|
<td class="paramname"><em>a</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Toggle the specific <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">a</td><td>The <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> to toggle. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00900">900</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5d3b4a33ebc2ca9ebb154e10a05dbdd4"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::setLedStatus </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>This will set the LEDs, so the user can see which connections are active.</p>
|
|
<p>The first <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> indicate that the Wiimote is connected, the second <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> indicate indicate that a Motion Plus is also connected the third <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> will indicate that a Nunchuck controller is also connected. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00906">906</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae946f7d6e9ce89fb083f5f138c0736c2"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint8_t WII::getBatteryLevel </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Return the battery level of the Wiimote. </p><dl class="section return"><dt>Returns</dt><dd>The battery level in the range 0-255. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l00919">919</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8e9ac1d379db5c07c478401046a1c0ac"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint8_t WII::getWiiState </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Return the Wiimote state. </p><dl class="section return"><dt>Returns</dt><dd>See: <a href="http://wiibrew.org/wiki/Wiimote#0x20:_Status">http://wiibrew.org/wiki/Wiimote#0x20:_Status</a>. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00189">189</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af384f13c59fee08a4be0c541e6a9b387"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::attachOnInit </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void(*)(void) </td>
|
|
<td class="paramname"><em>funcOnInit</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Used to call your own function when the controller is successfully initialized. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">funcOnInit</td><td>Function to call. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00197">197</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2fb34f50b5374c9442af263f61595af4"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::getWiimotePitch </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Pitch and roll calculated from the accelerometer inside the Wiimote. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00218">218</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9a58b857c84fa82152be7983efe70f60"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::getWiimoteRoll </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Pitch and roll calculated from the accelerometer inside the Wiimote. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00222">222</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a052ed48b0eea76fbd3858024ce962c6f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::getNunchuckPitch </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Pitch and roll calculated from the accelerometer inside the Nunchuck. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00230">230</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a73e82829c5d13a4117ecd6d23b6c3d98"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::getNunchuckRoll </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Pitch and roll calculated from the accelerometer inside the Nunchuck. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00234">234</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3505abbc01c71d134ce301dfb7c0c5b5"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void WII::IRinitialize </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Initialises the camera as per the steps from: <a href="http://wiibrew.org/wiki/Wiimote#IR_Camera">http://wiibrew.org/wiki/Wiimote#IR_Camera</a> </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8cpp_source.html#l01096">1096</a> of file <a class="el" href="_wii_8cpp_source.html">Wii.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af380eb3bf65ce33a60aaf35f74a44f6d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::getIRx1 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 1 x-position read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The x-position of the object in the range 0-1023. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00292">292</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a341b9a50bfdb18af9c66a3079e5804d9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::getIRy1 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 1 y-position read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The y-position of the object in the range 0-767. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00300">300</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2d8fd822e6e9c271d59c71dc7b757421"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint8_t WII::getIRs1 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 1 size read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The size of the object in the range 0-15. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00308">308</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a551e48a50c7b60722e807e68ae25f084"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::getIRx2 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 2 x-position read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The x-position of the object in the range 0-1023. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00316">316</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae148de3c99b3fb4ef65ea62d2848df7d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::getIRy2 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 2 y-position read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The y-position of the object in the range 0-767. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00324">324</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="accf6ca623ffe93b3c78aaf60c7fd1f46"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint8_t WII::getIRs2 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 2 size read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The size of the object in the range 0-15. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00332">332</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5648a03968d0c2331867f9b7bcaa3e3e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::getIRx3 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 3 x-position read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The x-position of the object in the range 0-1023. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00340">340</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5e778f879c6d0a73a94bd61e42d05b8d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::getIRy3 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 3 y-position read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The y-position of the object in the range 0-767. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00348">348</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a05841e1975803d561f80aeb3dd0a4a1e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint8_t WII::getIRs3 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 3 size read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The size of the object in the range 0-15. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00356">356</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7a92d63c7cf9d3d5b38bdb9ad4d7ef66"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::getIRx4 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 4 x-position read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The x-position of the object in the range 0-1023. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00364">364</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a759837b933f63ce7c3235639be29250a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::getIRy4 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 4 y-position read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The y-position of the object in the range 0-767. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00372">372</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aef56b9f37422b0a41642b39d10db0735"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint8_t WII::getIRs4 </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IR object 4 size read from the Wii IR camera. </p><dl class="section return"><dt>Returns</dt><dd>The size of the object in the range 0-15. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00380">380</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0a444d7e348026e062751cf723877e8f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool WII::isIRCameraEnabled </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Use this to check if the camera is enabled or not. If not call <a class="el" href="class_w_i_i.html#a3505abbc01c71d134ce301dfb7c0c5b5">WII::IRinitialize</a> to initialize the IR camera. </p><dl class="section return"><dt>Returns</dt><dd>True if it's enabled, false if not. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00389">389</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Data Documentation</h2>
|
|
<a class="anchor" id="ae25a8ea1b0713801e0209e795b4596fa"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool WII::wiimoteConnected</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Variable used to indicate if a Wiimote is connected. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00199">199</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7cb4cec343c65fd350e6b05043d7f1a8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool WII::nunchuckConnected</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Variable used to indicate if a Nunchuck controller is connected. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00206">206</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a72bd4fad2e524276712a154b8cc2a16c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool WII::motionPlusConnected</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Variable used to indicate if a Nunchuck controller is connected. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00208">208</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a461f5b7a5f2bc874e107fc776c284b16"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool WII::wiiUProControllerConnected</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Variable used to indicate if a Wii U Pro controller is connected. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00210">210</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="afaafee11ac191ba43b6a2b989cdd137c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::accXwiimote</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Accelerometer values used to calculate pitch and roll. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00236">236</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa2c14275d9e482e6add06cb34ccf1197"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::accYwiimote</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Accelerometer values used to calculate pitch and roll. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00236">236</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="acdebdaab544ffcecf8ab09adacbd28c8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::accZwiimote</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Accelerometer values used to calculate pitch and roll. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00236">236</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3a13b5931284d5bcd6647f681cda95b4"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::accXnunchuck</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Accelerometer values used to calculate pitch and roll. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00242">242</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae657585a560e9d214e6c0219f8b47aeb"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::accYnunchuck</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Accelerometer values used to calculate pitch and roll. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00242">242</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a42af5743d2e3c2dbc01ea0b5531cc7c6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::accZnunchuck</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Accelerometer values used to calculate pitch and roll. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00242">242</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af61f57d34b81f2a878f0126a074e3af4"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::gyroPitch</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>This is the pitch calculated by the gyro - use this to tune <a class="el" href="class_w_i_i.html#aea6ce6f3222df3e547e9957673c7a07a">WII::pitchGyroScale</a>. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00247">247</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2a0e4745bff7cfec644bcebe984c2bc8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::gyroRoll</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>This is the roll calculated by the gyro - use this to tune <a class="el" href="class_w_i_i.html#a6c0971ae4c9ab752888a5871020c8331">WII::rollGyroScale</a>. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00249">249</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a988db5b35cfc3c543f93f49587a50e62"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::gyroYaw</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>This is the yaw calculated by the gyro - use this to tune <a class="el" href="class_w_i_i.html#a0694969a30092b9b1dcb26120c7cff73">WII::yawGyroScale</a>. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00251">251</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="acfb290a86aa9a65dd4ae84d02e3c6ded"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::pitchGyroSpeed</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>The speed in deg/s from the gyro. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00255">255</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3fb552c6ad486e23434dcb347a2a4b84"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::rollGyroSpeed</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>The speed in deg/s from the gyro. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00256">256</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad5df436cc5d073f26bf3ea5c60d788d6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double WII::yawGyroSpeed</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>The speed in deg/s from the gyro. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00257">257</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aea6ce6f3222df3e547e9957673c7a07a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::pitchGyroScale</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>You might need to fine-tune these values. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00262">262</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6c0971ae4c9ab752888a5871020c8331"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::rollGyroScale</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>You might need to fine-tune these values. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00263">263</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0694969a30092b9b1dcb26120c7cff73"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint16_t WII::yawGyroScale</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>You might need to fine-tune these values. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00264">264</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab813b65548e827f41a5192fcc34056ea"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::gyroYawRaw</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Raw value read directly from the Motion Plus. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00269">269</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0784c779ebeae2d459996c35a54ee3b8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::gyroRollRaw</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Raw value read directly from the Motion Plus. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00270">270</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a749ea9dd39ba9a5320c5b24ce93bc544"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::gyroPitchRaw</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Raw value read directly from the Motion Plus. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00271">271</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad4f0d2456c56414f9b8013b85a1ee7d2"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::gyroYawZero</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>These values are set when the controller is first initialized. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00276">276</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a10d91cd5d73bc655be776b44d27004c9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::gyroRollZero</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>These values are set when the controller is first initialized. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00277">277</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="abbc31ecd4495d70258cfa095e34cb3c3"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int16_t WII::gyroPitchZero</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>These values are set when the controller is first initialized. </p>
|
|
|
|
<p>Definition at line <a class="el" href="_wii_8h_source.html#l00278">278</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following files:<ul>
|
|
<li><a class="el" href="_wii_8h_source.html">Wii.h</a></li>
|
|
<li><a class="el" href="_wii_8cpp_source.html">Wii.cpp</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.7
|
|
</small></address>
|
|
</body>
|
|
</html>
|