|
|
|
@ -131,154 +131,156 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
|
|
|
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#abba090da8fd2707cb996899e798d1bd4"> 44</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID2 0x02DD // Microsoft X-Box One pad (Firmware 2015)</span></div>
|
|
|
|
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a6cc79a26eb1b03c3ca320f8adcd1d1bd"> 45</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID3 0x02E3 // Microsoft X-Box One Elite pad</span></div>
|
|
|
|
|
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a148021ecf4a60cb1f25d59bb698fa7df"> 46</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID4 0x02EA // Microsoft X-Box One S pad</span></div>
|
|
|
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor"></span></div>
|
|
|
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">// Unofficial controllers</span></div>
|
|
|
|
|
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a85fb8c87d82f5c49fdb951d41247563f"> 49</a></span> <span class="preprocessor">#define XBOX_VID2 0x0738 // Mad Catz</span></div>
|
|
|
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#aac92aad3632dc9632d04d90342904b18"> 50</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_VID3 0x0E6F // Afterglow</span></div>
|
|
|
|
|
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a17464f5e0fb6afc082555ccb61c29668"> 51</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_VID4 0x0F0D // HORIPAD ONE</span></div>
|
|
|
|
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#ade0eb2e0dd4f0c3fe45c82121f31d44d"> 52</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_VID5 0x1532 // Razer</span></div>
|
|
|
|
|
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a02fcf09e41a7a1a28fd1bdb28dc098ed"> 53</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_VID6 0x24C6 // PowerA</span></div>
|
|
|
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor"></span></div>
|
|
|
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#ae5883d7d1d2cdbbb5604865d67601696"> 55</a></span> <span class="preprocessor">#define XBOX_ONE_PID5 0x4A01 // Mad Catz FightStick TE 2 - might have different mapping for triggers?</span></div>
|
|
|
|
|
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#aede8fa4d1fe42ddc8c48f0bb2bfeee0c"> 56</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID6 0x0139 // Afterglow Prismatic Wired Controller</span></div>
|
|
|
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#ad6a957e104a5e50381681e16229c3ced"> 57</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID7 0x0146 // Rock Candy Wired Controller for Xbox One</span></div>
|
|
|
|
|
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#ac3ac9e12165117b895d17af5f40ea5dd"> 58</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID8 0x0067 // HORIPAD ONE</span></div>
|
|
|
|
|
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#abb2d1e64c4771836476e8aa1ffe46431"> 59</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID9 0x0A03 // Razer Wildcat</span></div>
|
|
|
|
|
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#ad7aedc27b8dfa49a7af8fce89432df0a"> 60</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID10 0x541A // PowerA Xbox One Mini Wired Controller</span></div>
|
|
|
|
|
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a3692a20fd79bcdfdcdec36b4acae8a76"> 61</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID11 0x542A // Xbox ONE spectra</span></div>
|
|
|
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a185f8aba65c0c20a1917efa6383d7ab0"> 62</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID12 0x543A // PowerA Xbox One wired controller</span></div>
|
|
|
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor"></span></div>
|
|
|
|
|
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html"> 65</a></span> <span class="keyword">class </span><a class="code" href="class_x_b_o_x_o_n_e.html">XBOXONE</a> : <span class="keyword">public</span> <a class="code" href="class_u_s_b_device_config.html">USBDeviceConfig</a>, <span class="keyword">public</span> <a class="code" href="class_usb_config_xtracter.html">UsbConfigXtracter</a> {</div>
|
|
|
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keyword">public</span>:</div>
|
|
|
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="class_x_b_o_x_o_n_e.html#a3b9466f31de5c4f4e46a47440eea2bfc">XBOXONE</a>(<a class="code" href="class_u_s_b.html">USB</a> *<a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>);</div>
|
|
|
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div>
|
|
|
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">virtual</span> uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#aeb2d90a3d77fc252a12f5ed54c3f370e">Init</a>(uint8_t parent, uint8_t port, <span class="keywordtype">bool</span> lowspeed);</div>
|
|
|
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">virtual</span> uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ab836f2e18a00ef89054d66fb2023ba64">Release</a>();</div>
|
|
|
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keyword">virtual</span> uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ac645e477bde4c2c2674ad8916f749651">Poll</a>();</div>
|
|
|
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div>
|
|
|
|
|
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a05332491fe28b71c6d7c9a9827370bdf"> 97</a></span>  <span class="keyword">virtual</span> uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#a05332491fe28b71c6d7c9a9827370bdf">GetAddress</a>() {</div>
|
|
|
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">return</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  };</div>
|
|
|
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div>
|
|
|
|
|
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a23112f12ed914d1b0128675b1f59aace"> 105</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a23112f12ed914d1b0128675b1f59aace">isReady</a>() {</div>
|
|
|
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordflow">return</span> bPollEnable;</div>
|
|
|
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  };</div>
|
|
|
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div>
|
|
|
|
|
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ae606811be2389140b19421aad2cb040f"> 113</a></span>  uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ae606811be2389140b19421aad2cb040f">readPollInterval</a>() {</div>
|
|
|
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">return</span> pollInterval;</div>
|
|
|
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  };</div>
|
|
|
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div>
|
|
|
|
|
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a53082e8413a3e7046b7e96fa3183b0eb"> 123</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a53082e8413a3e7046b7e96fa3183b0eb">VIDPIDOK</a>(uint16_t vid, uint16_t pid) {</div>
|
|
|
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> ((vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a72296ecd70897c4fcfe4c614bbf2051b">XBOX_VID1</a> || vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a85fb8c87d82f5c49fdb951d41247563f">XBOX_VID2</a> || vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#aac92aad3632dc9632d04d90342904b18">XBOX_VID3</a> || vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a17464f5e0fb6afc082555ccb61c29668">XBOX_VID4</a> || vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#ade0eb2e0dd4f0c3fe45c82121f31d44d">XBOX_VID5</a> || vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a02fcf09e41a7a1a28fd1bdb28dc098ed">XBOX_VID6</a>) &&</div>
|
|
|
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  (pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a10b005f24d84af7d10268faabea14c1e">XBOX_ONE_PID1</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#abba090da8fd2707cb996899e798d1bd4">XBOX_ONE_PID2</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a6cc79a26eb1b03c3ca320f8adcd1d1bd">XBOX_ONE_PID3</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a148021ecf4a60cb1f25d59bb698fa7df">XBOX_ONE_PID4</a> ||</div>
|
|
|
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#ae5883d7d1d2cdbbb5604865d67601696">XBOX_ONE_PID5</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#aede8fa4d1fe42ddc8c48f0bb2bfeee0c">XBOX_ONE_PID6</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#ad6a957e104a5e50381681e16229c3ced">XBOX_ONE_PID7</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#ac3ac9e12165117b895d17af5f40ea5dd">XBOX_ONE_PID8</a> ||</div>
|
|
|
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#abb2d1e64c4771836476e8aa1ffe46431">XBOX_ONE_PID9</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#ad7aedc27b8dfa49a7af8fce89432df0a">XBOX_ONE_PID10</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a3692a20fd79bcdfdcdec36b4acae8a76">XBOX_ONE_PID11</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a185f8aba65c0c20a1917efa6383d7ab0">XBOX_ONE_PID12</a>));</div>
|
|
|
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  };</div>
|
|
|
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  uint16_t <a class="code" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">getButtonPress</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b);</div>
|
|
|
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">getButtonClick</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b);</div>
|
|
|
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div>
|
|
|
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  int16_t <a class="code" href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc">getAnalogHat</a>(<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a> a);</div>
|
|
|
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div>
|
|
|
|
|
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a0b2434ed7197361d229340773b0c3bda"> 156</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a0b2434ed7197361d229340773b0c3bda">attachOnInit</a>(<span class="keywordtype">void</span> (*funcOnInit)(<span class="keywordtype">void</span>)) {</div>
|
|
|
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  pFuncOnInit = funcOnInit;</div>
|
|
|
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  };</div>
|
|
|
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div>
|
|
|
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85">setRumbleOff</a>();</div>
|
|
|
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div>
|
|
|
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261">setRumbleOn</a>(uint8_t leftTrigger, uint8_t rightTrigger, uint8_t leftMotor, uint8_t rightMotor);</div>
|
|
|
|
|
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3"> 174</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3">XboxOneConnected</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div>
|
|
|
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="keyword">protected</span>:</div>
|
|
|
|
|
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f"> 178</a></span>  <a class="code" href="class_u_s_b.html">USB</a> *<a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b"> 180</a></span>  uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621"> 182</a></span>  <a class="code" href="struct_ep_info.html">EpInfo</a> <a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[<a class="code" href="_x_b_o_x_o_n_e_8h.html#a8e9bf59d8bc051ff3fa38e2b327ade6e">XBOX_ONE_MAX_ENDPOINTS</a>];</div>
|
|
|
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div>
|
|
|
|
|
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ac6c75dcd5dfd5a9685a049f9bb8cb93f"> 185</a></span>  uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ac6c75dcd5dfd5a9685a049f9bb8cb93f">bConfNum</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659"> 187</a></span>  uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659">bNumEP</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284"> 189</a></span>  uint32_t <a class="code" href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">qNextPollTime</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div>
|
|
|
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a499cc378b8ae7d8fd63baa1b4dab97b5">EndpointXtract</a>(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, <span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a> *ep);</div>
|
|
|
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b">PrintEndpointDescriptor</a>(<span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a>* ep_ptr);</div>
|
|
|
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div>
|
|
|
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="keyword">private</span>:</div>
|
|
|
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordtype">void</span> onInit();</div>
|
|
|
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  void (*pFuncOnInit)(void); <span class="comment">// Pointer to function called in onInit()</span></div>
|
|
|
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div>
|
|
|
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  uint8_t pollInterval;</div>
|
|
|
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordtype">bool</span> bPollEnable;</div>
|
|
|
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> </div>
|
|
|
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="comment">/* Variables to store the buttons */</span></div>
|
|
|
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  uint16_t ButtonState;</div>
|
|
|
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  uint16_t OldButtonState;</div>
|
|
|
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  uint16_t ButtonClickState;</div>
|
|
|
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  int16_t hatValue[4];</div>
|
|
|
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  uint16_t triggerValue[2];</div>
|
|
|
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  uint16_t triggerValueOld[2];</div>
|
|
|
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div>
|
|
|
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keywordtype">bool</span> L2Clicked; <span class="comment">// These buttons are analog, so we use we use these bools to check if they where clicked or not</span></div>
|
|
|
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordtype">bool</span> R2Clicked;</div>
|
|
|
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div>
|
|
|
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  uint8_t readBuf[<a class="code" href="_x_b_o_x_o_n_e_8h.html#aee7388a903006047acac4b071a28bd9d">XBOX_ONE_EP_MAXPKTSIZE</a>]; <span class="comment">// General purpose buffer for input data</span></div>
|
|
|
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  uint8_t cmdCounter;</div>
|
|
|
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> </div>
|
|
|
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <span class="keywordtype">void</span> readReport(); <span class="comment">// Used to read the incoming data</span></div>
|
|
|
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> </div>
|
|
|
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="comment">/* Private commands */</span></div>
|
|
|
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  uint8_t XboxCommand(uint8_t* data, uint16_t nbytes);</div>
|
|
|
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> };</div>
|
|
|
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="preprocessor">#endif</span></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ac6c75dcd5dfd5a9685a049f9bb8cb93f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac6c75dcd5dfd5a9685a049f9bb8cb93f">XBOXONE::bConfNum</a></div><div class="ttdeci">uint8_t bConfNum</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00185">XBOXONE.h:185</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ae5883d7d1d2cdbbb5604865d67601696"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ae5883d7d1d2cdbbb5604865d67601696">XBOX_ONE_PID5</a></div><div class="ttdeci">#define XBOX_ONE_PID5</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00055">XBOXONE.h:55</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ad7aedc27b8dfa49a7af8fce89432df0a"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ad7aedc27b8dfa49a7af8fce89432df0a">XBOX_ONE_PID10</a></div><div class="ttdeci">#define XBOX_ONE_PID10</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00060">XBOXONE.h:60</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_abb2d1e64c4771836476e8aa1ffe46431"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#abb2d1e64c4771836476e8aa1ffe46431">XBOX_ONE_PID9</a></div><div class="ttdeci">#define XBOX_ONE_PID9</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00059">XBOXONE.h:59</a></div></div>
|
|
|
|
|
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#ae5a3f07dfb7cb42bc8f9ce64659b5081"> 47</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID13 0x0B0A // Microsoft X-Box One Adaptive Controller</span></div>
|
|
|
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor"></span></div>
|
|
|
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">// Unofficial controllers</span></div>
|
|
|
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a85fb8c87d82f5c49fdb951d41247563f"> 50</a></span> <span class="preprocessor">#define XBOX_VID2 0x0738 // Mad Catz</span></div>
|
|
|
|
|
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#aac92aad3632dc9632d04d90342904b18"> 51</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_VID3 0x0E6F // Afterglow</span></div>
|
|
|
|
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a17464f5e0fb6afc082555ccb61c29668"> 52</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_VID4 0x0F0D // HORIPAD ONE</span></div>
|
|
|
|
|
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#ade0eb2e0dd4f0c3fe45c82121f31d44d"> 53</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_VID5 0x1532 // Razer</span></div>
|
|
|
|
|
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a02fcf09e41a7a1a28fd1bdb28dc098ed"> 54</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_VID6 0x24C6 // PowerA</span></div>
|
|
|
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor"></span></div>
|
|
|
|
|
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#ae5883d7d1d2cdbbb5604865d67601696"> 56</a></span> <span class="preprocessor">#define XBOX_ONE_PID5 0x4A01 // Mad Catz FightStick TE 2 - might have different mapping for triggers?</span></div>
|
|
|
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#aede8fa4d1fe42ddc8c48f0bb2bfeee0c"> 57</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID6 0x0139 // Afterglow Prismatic Wired Controller</span></div>
|
|
|
|
|
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#ad6a957e104a5e50381681e16229c3ced"> 58</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID7 0x0146 // Rock Candy Wired Controller for Xbox One</span></div>
|
|
|
|
|
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#ac3ac9e12165117b895d17af5f40ea5dd"> 59</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID8 0x0067 // HORIPAD ONE</span></div>
|
|
|
|
|
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#abb2d1e64c4771836476e8aa1ffe46431"> 60</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID9 0x0A03 // Razer Wildcat</span></div>
|
|
|
|
|
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#ad7aedc27b8dfa49a7af8fce89432df0a"> 61</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID10 0x541A // PowerA Xbox One Mini Wired Controller</span></div>
|
|
|
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a3692a20fd79bcdfdcdec36b4acae8a76"> 62</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID11 0x542A // Xbox ONE spectra</span></div>
|
|
|
|
|
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="_x_b_o_x_o_n_e_8h.html#a185f8aba65c0c20a1917efa6383d7ab0"> 63</a></span> <span class="preprocessor"></span><span class="preprocessor">#define XBOX_ONE_PID12 0x543A // PowerA Xbox One wired controller</span></div>
|
|
|
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor"></span></div>
|
|
|
|
|
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html"> 66</a></span> <span class="keyword">class </span><a class="code" href="class_x_b_o_x_o_n_e.html">XBOXONE</a> : <span class="keyword">public</span> <a class="code" href="class_u_s_b_device_config.html">USBDeviceConfig</a>, <span class="keyword">public</span> <a class="code" href="class_usb_config_xtracter.html">UsbConfigXtracter</a> {</div>
|
|
|
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="keyword">public</span>:</div>
|
|
|
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="class_x_b_o_x_o_n_e.html#a3b9466f31de5c4f4e46a47440eea2bfc">XBOXONE</a>(<a class="code" href="class_u_s_b.html">USB</a> *<a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>);</div>
|
|
|
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div>
|
|
|
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">virtual</span> uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#aeb2d90a3d77fc252a12f5ed54c3f370e">Init</a>(uint8_t parent, uint8_t port, <span class="keywordtype">bool</span> lowspeed);</div>
|
|
|
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">virtual</span> uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ab836f2e18a00ef89054d66fb2023ba64">Release</a>();</div>
|
|
|
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">virtual</span> uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ac645e477bde4c2c2674ad8916f749651">Poll</a>();</div>
|
|
|
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div>
|
|
|
|
|
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a05332491fe28b71c6d7c9a9827370bdf"> 98</a></span>  <span class="keyword">virtual</span> uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#a05332491fe28b71c6d7c9a9827370bdf">GetAddress</a>() {</div>
|
|
|
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">return</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  };</div>
|
|
|
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div>
|
|
|
|
|
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a23112f12ed914d1b0128675b1f59aace"> 106</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a23112f12ed914d1b0128675b1f59aace">isReady</a>() {</div>
|
|
|
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">return</span> bPollEnable;</div>
|
|
|
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  };</div>
|
|
|
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div>
|
|
|
|
|
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ae606811be2389140b19421aad2cb040f"> 114</a></span>  uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ae606811be2389140b19421aad2cb040f">readPollInterval</a>() {</div>
|
|
|
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">return</span> pollInterval;</div>
|
|
|
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  };</div>
|
|
|
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div>
|
|
|
|
|
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a53082e8413a3e7046b7e96fa3183b0eb"> 124</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a53082e8413a3e7046b7e96fa3183b0eb">VIDPIDOK</a>(uint16_t vid, uint16_t pid) {</div>
|
|
|
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordflow">return</span> ((vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a72296ecd70897c4fcfe4c614bbf2051b">XBOX_VID1</a> || vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a85fb8c87d82f5c49fdb951d41247563f">XBOX_VID2</a> || vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#aac92aad3632dc9632d04d90342904b18">XBOX_VID3</a> || vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a17464f5e0fb6afc082555ccb61c29668">XBOX_VID4</a> || vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#ade0eb2e0dd4f0c3fe45c82121f31d44d">XBOX_VID5</a> || vid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a02fcf09e41a7a1a28fd1bdb28dc098ed">XBOX_VID6</a>) &&</div>
|
|
|
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  (pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a10b005f24d84af7d10268faabea14c1e">XBOX_ONE_PID1</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#abba090da8fd2707cb996899e798d1bd4">XBOX_ONE_PID2</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a6cc79a26eb1b03c3ca320f8adcd1d1bd">XBOX_ONE_PID3</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a148021ecf4a60cb1f25d59bb698fa7df">XBOX_ONE_PID4</a> ||</div>
|
|
|
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#ae5883d7d1d2cdbbb5604865d67601696">XBOX_ONE_PID5</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#aede8fa4d1fe42ddc8c48f0bb2bfeee0c">XBOX_ONE_PID6</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#ad6a957e104a5e50381681e16229c3ced">XBOX_ONE_PID7</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#ac3ac9e12165117b895d17af5f40ea5dd">XBOX_ONE_PID8</a> ||</div>
|
|
|
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#abb2d1e64c4771836476e8aa1ffe46431">XBOX_ONE_PID9</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#ad7aedc27b8dfa49a7af8fce89432df0a">XBOX_ONE_PID10</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a3692a20fd79bcdfdcdec36b4acae8a76">XBOX_ONE_PID11</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#a185f8aba65c0c20a1917efa6383d7ab0">XBOX_ONE_PID12</a> || pid == <a class="code" href="_x_b_o_x_o_n_e_8h.html#ae5a3f07dfb7cb42bc8f9ce64659b5081">XBOX_ONE_PID13</a>));</div>
|
|
|
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  };</div>
|
|
|
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  uint16_t <a class="code" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">getButtonPress</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b);</div>
|
|
|
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">getButtonClick</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b);</div>
|
|
|
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div>
|
|
|
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  int16_t <a class="code" href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc">getAnalogHat</a>(<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a> a);</div>
|
|
|
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div>
|
|
|
|
|
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a0b2434ed7197361d229340773b0c3bda"> 157</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a0b2434ed7197361d229340773b0c3bda">attachOnInit</a>(<span class="keywordtype">void</span> (*funcOnInit)(<span class="keywordtype">void</span>)) {</div>
|
|
|
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  pFuncOnInit = funcOnInit;</div>
|
|
|
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  };</div>
|
|
|
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div>
|
|
|
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85">setRumbleOff</a>();</div>
|
|
|
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div>
|
|
|
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261">setRumbleOn</a>(uint8_t leftTrigger, uint8_t rightTrigger, uint8_t leftMotor, uint8_t rightMotor);</div>
|
|
|
|
|
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3"> 175</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3">XboxOneConnected</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div>
|
|
|
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="keyword">protected</span>:</div>
|
|
|
|
|
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f"> 179</a></span>  <a class="code" href="class_u_s_b.html">USB</a> *<a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b"> 181</a></span>  uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621"> 183</a></span>  <a class="code" href="struct_ep_info.html">EpInfo</a> <a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[<a class="code" href="_x_b_o_x_o_n_e_8h.html#a8e9bf59d8bc051ff3fa38e2b327ade6e">XBOX_ONE_MAX_ENDPOINTS</a>];</div>
|
|
|
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div>
|
|
|
|
|
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ac6c75dcd5dfd5a9685a049f9bb8cb93f"> 186</a></span>  uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ac6c75dcd5dfd5a9685a049f9bb8cb93f">bConfNum</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659"> 188</a></span>  uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659">bNumEP</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284"> 190</a></span>  uint32_t <a class="code" href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">qNextPollTime</a>;</div>
|
|
|
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div>
|
|
|
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a499cc378b8ae7d8fd63baa1b4dab97b5">EndpointXtract</a>(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, <span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a> *ep);</div>
|
|
|
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b">PrintEndpointDescriptor</a>(<span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a>* ep_ptr);</div>
|
|
|
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div>
|
|
|
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="keyword">private</span>:</div>
|
|
|
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordtype">void</span> onInit();</div>
|
|
|
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  void (*pFuncOnInit)(void); <span class="comment">// Pointer to function called in onInit()</span></div>
|
|
|
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div>
|
|
|
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  uint8_t pollInterval;</div>
|
|
|
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordtype">bool</span> bPollEnable;</div>
|
|
|
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div>
|
|
|
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="comment">/* Variables to store the buttons */</span></div>
|
|
|
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  uint16_t ButtonState;</div>
|
|
|
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  uint16_t OldButtonState;</div>
|
|
|
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  uint16_t ButtonClickState;</div>
|
|
|
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  int16_t hatValue[4];</div>
|
|
|
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  uint16_t triggerValue[2];</div>
|
|
|
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  uint16_t triggerValueOld[2];</div>
|
|
|
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> </div>
|
|
|
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordtype">bool</span> L2Clicked; <span class="comment">// These buttons are analog, so we use we use these bools to check if they where clicked or not</span></div>
|
|
|
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordtype">bool</span> R2Clicked;</div>
|
|
|
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div>
|
|
|
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  uint8_t readBuf[<a class="code" href="_x_b_o_x_o_n_e_8h.html#aee7388a903006047acac4b071a28bd9d">XBOX_ONE_EP_MAXPKTSIZE</a>]; <span class="comment">// General purpose buffer for input data</span></div>
|
|
|
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  uint8_t cmdCounter;</div>
|
|
|
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> </div>
|
|
|
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordtype">void</span> readReport(); <span class="comment">// Used to read the incoming data</span></div>
|
|
|
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div>
|
|
|
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="comment">/* Private commands */</span></div>
|
|
|
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  uint8_t XboxCommand(uint8_t* data, uint16_t nbytes);</div>
|
|
|
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> };</div>
|
|
|
|
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="preprocessor">#endif</span></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ac6c75dcd5dfd5a9685a049f9bb8cb93f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac6c75dcd5dfd5a9685a049f9bb8cb93f">XBOXONE::bConfNum</a></div><div class="ttdeci">uint8_t bConfNum</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00186">XBOXONE.h:186</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ae5883d7d1d2cdbbb5604865d67601696"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ae5883d7d1d2cdbbb5604865d67601696">XBOX_ONE_PID5</a></div><div class="ttdeci">#define XBOX_ONE_PID5</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00056">XBOXONE.h:56</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ad7aedc27b8dfa49a7af8fce89432df0a"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ad7aedc27b8dfa49a7af8fce89432df0a">XBOX_ONE_PID10</a></div><div class="ttdeci">#define XBOX_ONE_PID10</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00061">XBOXONE.h:61</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_abb2d1e64c4771836476e8aa1ffe46431"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#abb2d1e64c4771836476e8aa1ffe46431">XBOX_ONE_PID9</a></div><div class="ttdeci">#define XBOX_ONE_PID9</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00060">XBOXONE.h:60</a></div></div>
|
|
|
|
|
<div class="ttc" id="xbox_enums_8h_html"><div class="ttname"><a href="xbox_enums_8h.html">xboxEnums.h</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a23112f12ed914d1b0128675b1f59aace"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a23112f12ed914d1b0128675b1f59aace">XBOXONE::isReady</a></div><div class="ttdeci">virtual bool isReady()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00105">XBOXONE.h:105</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a23112f12ed914d1b0128675b1f59aace"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a23112f12ed914d1b0128675b1f59aace">XBOXONE::isReady</a></div><div class="ttdeci">virtual bool isReady()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00106">XBOXONE.h:106</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_aee7388a903006047acac4b071a28bd9d"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#aee7388a903006047acac4b071a28bd9d">XBOX_ONE_EP_MAXPKTSIZE</a></div><div class="ttdeci">#define XBOX_ONE_EP_MAXPKTSIZE</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00030">XBOXONE.h:30</a></div></div>
|
|
|
|
|
<div class="ttc" id="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00148">usb_ch9.h:148</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a5b4e45cdd8695439d9772f55bb8ece6f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">XBOXONE::pUsb</a></div><div class="ttdeci">USB * pUsb</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00178">XBOXONE.h:178</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a0b2434ed7197361d229340773b0c3bda"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a0b2434ed7197361d229340773b0c3bda">XBOXONE::attachOnInit</a></div><div class="ttdeci">void attachOnInit(void(*funcOnInit)(void))</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00156">XBOXONE.h:156</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a5b4e45cdd8695439d9772f55bb8ece6f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">XBOXONE::pUsb</a></div><div class="ttdeci">USB * pUsb</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00179">XBOXONE.h:179</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a0b2434ed7197361d229340773b0c3bda"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a0b2434ed7197361d229340773b0c3bda">XBOXONE::attachOnInit</a></div><div class="ttdeci">void attachOnInit(void(*funcOnInit)(void))</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00157">XBOXONE.h:157</a></div></div>
|
|
|
|
|
<div class="ttc" id="controller_enums_8h_html_a34dad8f0a0927471137c403216597093"><div class="ttname"><a href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a></div><div class="ttdeci">AnalogHatEnum</div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00157">controllerEnums.h:157</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a800dd3559813c0f1771e8fdd30c4105b"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">XBOXONE::bAddress</a></div><div class="ttdeci">uint8_t bAddress</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00180">XBOXONE.h:180</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a800dd3559813c0f1771e8fdd30c4105b"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">XBOXONE::bAddress</a></div><div class="ttdeci">uint8_t bAddress</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00181">XBOXONE.h:181</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a3b9466f31de5c4f4e46a47440eea2bfc"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a3b9466f31de5c4f4e46a47440eea2bfc">XBOXONE::XBOXONE</a></div><div class="ttdeci">XBOXONE(USB *pUsb)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00027">XBOXONE.cpp:27</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_u_s_b_device_config_html"><div class="ttname"><a href="class_u_s_b_device_config.html">USBDeviceConfig</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00134">UsbCore.h:134</a></div></div>
|
|
|
|
|
<div class="ttc" id="_usb_8h_html"><div class="ttname"><a href="_usb_8h.html">Usb.h</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_aac92aad3632dc9632d04d90342904b18"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#aac92aad3632dc9632d04d90342904b18">XBOX_VID3</a></div><div class="ttdeci">#define XBOX_VID3</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00050">XBOXONE.h:50</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_aac92aad3632dc9632d04d90342904b18"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#aac92aad3632dc9632d04d90342904b18">XBOX_VID3</a></div><div class="ttdeci">#define XBOX_VID3</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00051">XBOXONE.h:51</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a499cc378b8ae7d8fd63baa1b4dab97b5"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a499cc378b8ae7d8fd63baa1b4dab97b5">XBOXONE::EndpointXtract</a></div><div class="ttdeci">void EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00239">XBOXONE.cpp:239</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a958f262ed66dd5bf0ad7dfd54a369659"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659">XBOXONE::bNumEP</a></div><div class="ttdeci">uint8_t bNumEP</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00187">XBOXONE.h:187</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a02fcf09e41a7a1a28fd1bdb28dc098ed"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a02fcf09e41a7a1a28fd1bdb28dc098ed">XBOX_VID6</a></div><div class="ttdeci">#define XBOX_VID6</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00053">XBOXONE.h:53</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a958f262ed66dd5bf0ad7dfd54a369659"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659">XBOXONE::bNumEP</a></div><div class="ttdeci">uint8_t bNumEP</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00188">XBOXONE.h:188</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a02fcf09e41a7a1a28fd1bdb28dc098ed"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a02fcf09e41a7a1a28fd1bdb28dc098ed">XBOX_VID6</a></div><div class="ttdeci">#define XBOX_VID6</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00054">XBOXONE.h:54</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a2eea30f2ce47380fc414d4fc4231335b"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b">XBOXONE::PrintEndpointDescriptor</a></div><div class="ttdeci">void PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR *ep_ptr)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00259">XBOXONE.cpp:259</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ac055f7c7156ef515fe362e751fe1bae3"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3">XBOXONE::XboxOneConnected</a></div><div class="ttdeci">bool XboxOneConnected</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00174">XBOXONE.h:174</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ac055f7c7156ef515fe362e751fe1bae3"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3">XBOXONE::XboxOneConnected</a></div><div class="ttdeci">bool XboxOneConnected</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00175">XBOXONE.h:175</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a8e9bf59d8bc051ff3fa38e2b327ade6e"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a8e9bf59d8bc051ff3fa38e2b327ade6e">XBOX_ONE_MAX_ENDPOINTS</a></div><div class="ttdeci">#define XBOX_ONE_MAX_ENDPOINTS</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00037">XBOXONE.h:37</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a85fb8c87d82f5c49fdb951d41247563f"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a85fb8c87d82f5c49fdb951d41247563f">XBOX_VID2</a></div><div class="ttdeci">#define XBOX_VID2</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00049">XBOXONE.h:49</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a85fb8c87d82f5c49fdb951d41247563f"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a85fb8c87d82f5c49fdb951d41247563f">XBOX_VID2</a></div><div class="ttdeci">#define XBOX_VID2</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00050">XBOXONE.h:50</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a506e8add57ffac652a28e8c5b7e72e85"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85">XBOXONE::setRumbleOff</a></div><div class="ttdeci">void setRumbleOff()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00442">XBOXONE.cpp:442</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ac3ac9e12165117b895d17af5f40ea5dd"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ac3ac9e12165117b895d17af5f40ea5dd">XBOX_ONE_PID8</a></div><div class="ttdeci">#define XBOX_ONE_PID8</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00058">XBOXONE.h:58</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ac3ac9e12165117b895d17af5f40ea5dd"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ac3ac9e12165117b895d17af5f40ea5dd">XBOX_ONE_PID8</a></div><div class="ttdeci">#define XBOX_ONE_PID8</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00059">XBOXONE.h:59</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ab836f2e18a00ef89054d66fb2023ba64"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ab836f2e18a00ef89054d66fb2023ba64">XBOXONE::Release</a></div><div class="ttdeci">virtual uint8_t Release()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00278">XBOXONE.cpp:278</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a17464f5e0fb6afc082555ccb61c29668"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a17464f5e0fb6afc082555ccb61c29668">XBOX_VID4</a></div><div class="ttdeci">#define XBOX_VID4</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00051">XBOXONE.h:51</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a17464f5e0fb6afc082555ccb61c29668"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a17464f5e0fb6afc082555ccb61c29668">XBOX_VID4</a></div><div class="ttdeci">#define XBOX_VID4</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00052">XBOXONE.h:52</a></div></div>
|
|
|
|
|
<div class="ttc" id="struct_ep_info_html"><div class="ttname"><a href="struct_ep_info.html">EpInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00039">address.h:39</a></div></div>
|
|
|
|
|
<div class="ttc" id="controller_enums_8h_html_a94f7389d205c78830a5441370d7870fd"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a></div><div class="ttdeci">ButtonEnum</div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00078">controllerEnums.h:78</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ae197d34a4c2138d1889afe2c2e3345c4"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">XBOXONE::getButtonPress</a></div><div class="ttdeci">uint16_t getButtonPress(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00372">XBOXONE.cpp:372</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a05332491fe28b71c6d7c9a9827370bdf"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a05332491fe28b71c6d7c9a9827370bdf">XBOXONE::GetAddress</a></div><div class="ttdeci">virtual uint8_t GetAddress()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00097">XBOXONE.h:97</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a4d0702c6fc0327535d909975670e9284"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">XBOXONE::qNextPollTime</a></div><div class="ttdeci">uint32_t qNextPollTime</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00189">XBOXONE.h:189</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a05332491fe28b71c6d7c9a9827370bdf"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a05332491fe28b71c6d7c9a9827370bdf">XBOXONE::GetAddress</a></div><div class="ttdeci">virtual uint8_t GetAddress()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00098">XBOXONE.h:98</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a4d0702c6fc0327535d909975670e9284"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">XBOXONE::qNextPollTime</a></div><div class="ttdeci">uint32_t qNextPollTime</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00190">XBOXONE.h:190</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_abba090da8fd2707cb996899e798d1bd4"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#abba090da8fd2707cb996899e798d1bd4">XBOX_ONE_PID2</a></div><div class="ttdeci">#define XBOX_ONE_PID2</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00044">XBOXONE.h:44</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a2915fc1f1f3a9c5333bfd643defa0621"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">XBOXONE::epInfo</a></div><div class="ttdeci">EpInfo epInfo[XBOX_ONE_MAX_ENDPOINTS]</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00182">XBOXONE.h:182</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a2915fc1f1f3a9c5333bfd643defa0621"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">XBOXONE::epInfo</a></div><div class="ttdeci">EpInfo epInfo[XBOX_ONE_MAX_ENDPOINTS]</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00183">XBOXONE.h:183</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_usb_config_xtracter_html"><div class="ttname"><a href="class_usb_config_xtracter.html">UsbConfigXtracter</a></div><div class="ttdef"><b>Definition:</b> <a href="confdescparser_8h_source.html#l00030">confdescparser.h:30</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a9bd03dd0f2abde83f34635ab72564811"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">XBOXONE::getButtonClick</a></div><div class="ttdeci">bool getButtonClick(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00380">XBOXONE.cpp:380</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ae606811be2389140b19421aad2cb040f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ae606811be2389140b19421aad2cb040f">XBOXONE::readPollInterval</a></div><div class="ttdeci">uint8_t readPollInterval()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00113">XBOXONE.h:113</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ae606811be2389140b19421aad2cb040f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ae606811be2389140b19421aad2cb040f">XBOXONE::readPollInterval</a></div><div class="ttdeci">uint8_t readPollInterval()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00114">XBOXONE.h:114</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ac645e477bde4c2c2674ad8916f749651"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac645e477bde4c2c2674ad8916f749651">XBOXONE::Poll</a></div><div class="ttdeci">virtual uint8_t Poll()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00292">XBOXONE.cpp:292</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a3692a20fd79bcdfdcdec36b4acae8a76"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a3692a20fd79bcdfdcdec36b4acae8a76">XBOX_ONE_PID11</a></div><div class="ttdeci">#define XBOX_ONE_PID11</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00061">XBOXONE.h:61</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a3692a20fd79bcdfdcdec36b4acae8a76"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a3692a20fd79bcdfdcdec36b4acae8a76">XBOX_ONE_PID11</a></div><div class="ttdeci">#define XBOX_ONE_PID11</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00062">XBOXONE.h:62</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a148021ecf4a60cb1f25d59bb698fa7df"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a148021ecf4a60cb1f25d59bb698fa7df">XBOX_ONE_PID4</a></div><div class="ttdeci">#define XBOX_ONE_PID4</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00046">XBOXONE.h:46</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_aeb2d90a3d77fc252a12f5ed54c3f370e"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#aeb2d90a3d77fc252a12f5ed54c3f370e">XBOXONE::Init</a></div><div class="ttdeci">virtual uint8_t Init(uint8_t parent, uint8_t port, bool lowspeed)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00046">XBOXONE.cpp:46</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ad6a957e104a5e50381681e16229c3ced"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ad6a957e104a5e50381681e16229c3ced">XBOX_ONE_PID7</a></div><div class="ttdeci">#define XBOX_ONE_PID7</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00057">XBOXONE.h:57</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a185f8aba65c0c20a1917efa6383d7ab0"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a185f8aba65c0c20a1917efa6383d7ab0">XBOX_ONE_PID12</a></div><div class="ttdeci">#define XBOX_ONE_PID12</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00062">XBOXONE.h:62</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ad6a957e104a5e50381681e16229c3ced"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ad6a957e104a5e50381681e16229c3ced">XBOX_ONE_PID7</a></div><div class="ttdeci">#define XBOX_ONE_PID7</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00058">XBOXONE.h:58</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ae5a3f07dfb7cb42bc8f9ce64659b5081"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ae5a3f07dfb7cb42bc8f9ce64659b5081">XBOX_ONE_PID13</a></div><div class="ttdeci">#define XBOX_ONE_PID13</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00047">XBOXONE.h:47</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a185f8aba65c0c20a1917efa6383d7ab0"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a185f8aba65c0c20a1917efa6383d7ab0">XBOX_ONE_PID12</a></div><div class="ttdeci">#define XBOX_ONE_PID12</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00063">XBOXONE.h:63</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_u_s_b_html"><div class="ttname"><a href="class_u_s_b.html">USB</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00210">UsbCore.h:210</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ade0eb2e0dd4f0c3fe45c82121f31d44d"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ade0eb2e0dd4f0c3fe45c82121f31d44d">XBOX_VID5</a></div><div class="ttdeci">#define XBOX_VID5</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00052">XBOXONE.h:52</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_aede8fa4d1fe42ddc8c48f0bb2bfeee0c"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#aede8fa4d1fe42ddc8c48f0bb2bfeee0c">XBOX_ONE_PID6</a></div><div class="ttdeci">#define XBOX_ONE_PID6</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00056">XBOXONE.h:56</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ade0eb2e0dd4f0c3fe45c82121f31d44d"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ade0eb2e0dd4f0c3fe45c82121f31d44d">XBOX_VID5</a></div><div class="ttdeci">#define XBOX_VID5</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00053">XBOXONE.h:53</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_aede8fa4d1fe42ddc8c48f0bb2bfeee0c"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#aede8fa4d1fe42ddc8c48f0bb2bfeee0c">XBOX_ONE_PID6</a></div><div class="ttdeci">#define XBOX_ONE_PID6</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00057">XBOXONE.h:57</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_af49b526b57d3a3148537bdada9fb69bc"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc">XBOXONE::getAnalogHat</a></div><div class="ttdeci">int16_t getAnalogHat(AnalogHatEnum a)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00400">XBOXONE.cpp:400</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a72296ecd70897c4fcfe4c614bbf2051b"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a72296ecd70897c4fcfe4c614bbf2051b">XBOX_VID1</a></div><div class="ttdeci">#define XBOX_VID1</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00042">XBOXONE.h:42</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html">XBOXONE</a></div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00065">XBOXONE.h:65</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html">XBOXONE</a></div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00066">XBOXONE.h:66</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a10b005f24d84af7d10268faabea14c1e"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a10b005f24d84af7d10268faabea14c1e">XBOX_ONE_PID1</a></div><div class="ttdeci">#define XBOX_ONE_PID1</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00043">XBOXONE.h:43</a></div></div>
|
|
|
|
|
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a6cc79a26eb1b03c3ca320f8adcd1d1bd"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a6cc79a26eb1b03c3ca320f8adcd1d1bd">XBOX_ONE_PID3</a></div><div class="ttdeci">#define XBOX_ONE_PID3</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00045">XBOXONE.h:45</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a53082e8413a3e7046b7e96fa3183b0eb"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a53082e8413a3e7046b7e96fa3183b0eb">XBOXONE::VIDPIDOK</a></div><div class="ttdeci">virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00123">XBOXONE.h:123</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a53082e8413a3e7046b7e96fa3183b0eb"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a53082e8413a3e7046b7e96fa3183b0eb">XBOXONE::VIDPIDOK</a></div><div class="ttdeci">virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00124">XBOXONE.h:124</a></div></div>
|
|
|
|
|
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a6586343cacf8705c7a3c2d4f479f2261"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261">XBOXONE::setRumbleOn</a></div><div class="ttdeci">void setRumbleOn(uint8_t leftTrigger, uint8_t rightTrigger, uint8_t leftMotor, uint8_t rightMotor)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00464">XBOXONE.cpp:464</a></div></div>
|
|
|
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
|
|
|
<!-- start footer part -->
|
|
|
|
|