|
|
|
@ -428,150 +428,169 @@ $(function() {
|
|
|
|
|
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  hatValue[<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093aaeb027a0ae5bbc6ba25e1c78a6486c7b">RightHatX</a>] = (int16_t)(((uint16_t)readBuf[15] << 8) | readBuf[14]);</div>
|
|
|
|
|
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  hatValue[<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a7f1fb2db5381286691f4dec179ed5d5a">RightHatY</a>] = (int16_t)(((uint16_t)readBuf[17] << 8) | readBuf[16]);</div>
|
|
|
|
|
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <span class="comment">//Notify(PSTR("\r\nButtonState"), 0x80);</span></div>
|
|
|
|
|
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="comment">//PrintHex<uint16_t>(ButtonState, 0x80);</span></div>
|
|
|
|
|
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <span class="keywordflow">if</span>(ButtonState != OldButtonState) {</div>
|
|
|
|
|
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  ButtonClickState = ButtonState & ~OldButtonState; <span class="comment">// Update click state variable</span></div>
|
|
|
|
|
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  OldButtonState = ButtonState;</div>
|
|
|
|
|
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  }</div>
|
|
|
|
|
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <span class="comment">// Read and store share button separately</span></div>
|
|
|
|
|
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> newShare = (readBuf[22] & 0x01) ? 1 : 0;</div>
|
|
|
|
|
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  shareClicked = ((sharePressed != newShare) && newShare) ? 1 : 0;</div>
|
|
|
|
|
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  sharePressed = newShare;</div>
|
|
|
|
|
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="comment">//Notify(PSTR("\r\nButtonState"), 0x80);</span></div>
|
|
|
|
|
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <span class="comment">//PrintHex<uint16_t>(ButtonState, 0x80);</span></div>
|
|
|
|
|
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="comment">// Handle click detection for triggers</span></div>
|
|
|
|
|
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keywordflow">if</span>(triggerValue[0] != 0 && triggerValueOld[0] == 0)</div>
|
|
|
|
|
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  L2Clicked = <span class="keyword">true</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  triggerValueOld[0] = triggerValue[0];</div>
|
|
|
|
|
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="keywordflow">if</span>(triggerValue[1] != 0 && triggerValueOld[1] == 0)</div>
|
|
|
|
|
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  R2Clicked = <span class="keyword">true</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  triggerValueOld[1] = triggerValue[1];</div>
|
|
|
|
|
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00380"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4"> 380</a></span> uint16_t <a class="code" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">XBOXONE::getButtonPress</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b) {</div>
|
|
|
|
|
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keyword">const</span> int8_t index = <a class="code" href="xbox_enums_8h.html#a5061e79d5902f70fba9807427c870e93">getButtonIndexXbox</a>(b); <span class="keywordflow">if</span> (index < 0) <span class="keywordflow">return</span> 0;</div>
|
|
|
|
|
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <span class="keywordflow">if</span>(index == <a class="code" href="controller_enums_8h.html#a114f266591a03b0eff0f1e6b67d94f85">ButtonIndex</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a>)) <span class="comment">// These are analog buttons</span></div>
|
|
|
|
|
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <span class="keywordflow">return</span> triggerValue[0];</div>
|
|
|
|
|
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(index == <a class="code" href="controller_enums_8h.html#a114f266591a03b0eff0f1e6b67d94f85">ButtonIndex</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>))</div>
|
|
|
|
|
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <span class="keywordflow">return</span> triggerValue[1];</div>
|
|
|
|
|
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="keywordflow">return</span> (<span class="keywordtype">bool</span>)(ButtonState & ((uint16_t)<a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[index])));</div>
|
|
|
|
|
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00389"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811"> 389</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">XBOXONE::getButtonClick</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b) {</div>
|
|
|
|
|
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  <span class="keyword">const</span> int8_t index = <a class="code" href="xbox_enums_8h.html#a5061e79d5902f70fba9807427c870e93">getButtonIndexXbox</a>(b); <span class="keywordflow">if</span> (index < 0) <span class="keywordflow">return</span> 0;</div>
|
|
|
|
|
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keywordflow">if</span>(index == <a class="code" href="controller_enums_8h.html#a114f266591a03b0eff0f1e6b67d94f85">ButtonIndex</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a>)) {</div>
|
|
|
|
|
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="keywordflow">if</span>(L2Clicked) {</div>
|
|
|
|
|
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  L2Clicked = <span class="keyword">false</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  }</div>
|
|
|
|
|
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(index == <a class="code" href="controller_enums_8h.html#a114f266591a03b0eff0f1e6b67d94f85">ButtonIndex</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>)) {</div>
|
|
|
|
|
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="keywordflow">if</span>(R2Clicked) {</div>
|
|
|
|
|
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  R2Clicked = <span class="keyword">false</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  }</div>
|
|
|
|
|
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  }</div>
|
|
|
|
|
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  uint16_t button = <a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[index]);</div>
|
|
|
|
|
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  <span class="keywordtype">bool</span> click = (ButtonClickState & button);</div>
|
|
|
|
|
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  ButtonClickState &= ~button; <span class="comment">// Clear "click" event</span></div>
|
|
|
|
|
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="keywordflow">return</span> click;</div>
|
|
|
|
|
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00410"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc"> 410</a></span> int16_t <a class="code" href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc">XBOXONE::getAnalogHat</a>(<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a> a) {</div>
|
|
|
|
|
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="keywordflow">return</span> hatValue[a];</div>
|
|
|
|
|
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span> <span class="comment">/* Xbox Controller commands */</span></div>
|
|
|
|
|
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span> uint8_t XBOXONE::XboxCommand(uint8_t* data, uint16_t nbytes) {</div>
|
|
|
|
|
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  data[2] = cmdCounter++; <span class="comment">// Increment the output command counter</span></div>
|
|
|
|
|
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  uint8_t rcode = <a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>-><a class="code" href="class_u_s_b.html#affbc018973a588995457d535b0ac7ee7">outTransfer</a>(<a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</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#a1a9da90da4584db2de7c84f45bdafc89">XBOX_ONE_OUTPUT_PIPE</a> ].epAddr, nbytes, data);</div>
|
|
|
|
|
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span> <span class="preprocessor">#ifdef DEBUG_USB_HOST</span></div>
|
|
|
|
|
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <span class="keywordflow">if</span>(rcode) {</div>
|
|
|
|
|
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">"\r\nXboxCommand failed. Return: "</span>), 0x80);</div>
|
|
|
|
|
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  D_PrintHex<uint8_t > (rcode, 0x80);</div>
|
|
|
|
|
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="keywordflow">if</span>(ButtonState != OldButtonState) {</div>
|
|
|
|
|
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  ButtonClickState = ButtonState & ~OldButtonState; <span class="comment">// Update click state variable</span></div>
|
|
|
|
|
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  OldButtonState = ButtonState;</div>
|
|
|
|
|
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  }</div>
|
|
|
|
|
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="comment">// Handle click detection for triggers</span></div>
|
|
|
|
|
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keywordflow">if</span>(triggerValue[0] != 0 && triggerValueOld[0] == 0)</div>
|
|
|
|
|
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  L2Clicked = <span class="keyword">true</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  triggerValueOld[0] = triggerValue[0];</div>
|
|
|
|
|
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keywordflow">if</span>(triggerValue[1] != 0 && triggerValueOld[1] == 0)</div>
|
|
|
|
|
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  R2Clicked = <span class="keyword">true</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  triggerValueOld[1] = triggerValue[1];</div>
|
|
|
|
|
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4"> 385</a></span> uint16_t <a class="code" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">XBOXONE::getButtonPress</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b) {</div>
|
|
|
|
|
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="comment">// special handling for 'SHARE' button due to index collision with 'BACK',</span></div>
|
|
|
|
|
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <span class="comment">// since the 'SHARE' value originally came from the PS4 controller and</span></div>
|
|
|
|
|
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="comment">// the 'SHARE' button was added to Xbox later with the Series S/X controllers</span></div>
|
|
|
|
|
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keywordflow">if</span> (b == <a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda3754861e8c074fb088a2ed4f64786268">SHARE</a>) <span class="keywordflow">return</span> sharePressed;</div>
|
|
|
|
|
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keyword">const</span> int8_t index = <a class="code" href="xbox_enums_8h.html#a5061e79d5902f70fba9807427c870e93">getButtonIndexXbox</a>(b); <span class="keywordflow">if</span> (index < 0) <span class="keywordflow">return</span> 0;</div>
|
|
|
|
|
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="keywordflow">if</span>(index == <a class="code" href="controller_enums_8h.html#a114f266591a03b0eff0f1e6b67d94f85">ButtonIndex</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a>)) <span class="comment">// These are analog buttons</span></div>
|
|
|
|
|
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="keywordflow">return</span> triggerValue[0];</div>
|
|
|
|
|
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(index == <a class="code" href="controller_enums_8h.html#a114f266591a03b0eff0f1e6b67d94f85">ButtonIndex</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>))</div>
|
|
|
|
|
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="keywordflow">return</span> triggerValue[1];</div>
|
|
|
|
|
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <span class="keywordflow">return</span> (<span class="keywordtype">bool</span>)(ButtonState & ((uint16_t)<a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[index])));</div>
|
|
|
|
|
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00399"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811"> 399</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">XBOXONE::getButtonClick</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b) {</div>
|
|
|
|
|
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="comment">// special handling for 'SHARE' button, ibid the above</span></div>
|
|
|
|
|
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <span class="keywordflow">if</span> (b == <a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda3754861e8c074fb088a2ed4f64786268">SHARE</a>) {</div>
|
|
|
|
|
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="keywordflow">if</span> (shareClicked) {</div>
|
|
|
|
|
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  shareClicked = <span class="keyword">false</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  }</div>
|
|
|
|
|
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  }</div>
|
|
|
|
|
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="keyword">const</span> int8_t index = <a class="code" href="xbox_enums_8h.html#a5061e79d5902f70fba9807427c870e93">getButtonIndexXbox</a>(b); <span class="keywordflow">if</span> (index < 0) <span class="keywordflow">return</span> 0;</div>
|
|
|
|
|
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <span class="keywordflow">if</span>(index == <a class="code" href="controller_enums_8h.html#a114f266591a03b0eff0f1e6b67d94f85">ButtonIndex</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a>)) {</div>
|
|
|
|
|
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="keywordflow">if</span>(L2Clicked) {</div>
|
|
|
|
|
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  L2Clicked = <span class="keyword">false</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  }</div>
|
|
|
|
|
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(index == <a class="code" href="controller_enums_8h.html#a114f266591a03b0eff0f1e6b67d94f85">ButtonIndex</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>)) {</div>
|
|
|
|
|
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="keywordflow">if</span>(R2Clicked) {</div>
|
|
|
|
|
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  R2Clicked = <span class="keyword">false</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  }</div>
|
|
|
|
|
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
|
|
|
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  }</div>
|
|
|
|
|
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span> <span class="preprocessor">#endif</span></div>
|
|
|
|
|
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keywordflow">return</span> rcode;</div>
|
|
|
|
|
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span> <span class="comment">// The Xbox One packets are described at: https://github.com/quantus/xbox-one-controller-protocol</span></div>
|
|
|
|
|
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span> <span class="keywordtype">void</span> XBOXONE::onInit() {</div>
|
|
|
|
|
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <span class="comment">// A short buzz to show the controller is active</span></div>
|
|
|
|
|
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  uint8_t writeBuf[13];</div>
|
|
|
|
|
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <span class="comment">// Activate rumble</span></div>
|
|
|
|
|
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  writeBuf[0] = 0x09;</div>
|
|
|
|
|
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  writeBuf[1] = 0x00;</div>
|
|
|
|
|
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  <span class="comment">// Byte 2 is set in "XboxCommand"</span></div>
|
|
|
|
|
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="comment">// Single rumble effect</span></div>
|
|
|
|
|
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div>
|
|
|
|
|
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  writeBuf[4] = 0x00; <span class="comment">// Mode</span></div>
|
|
|
|
|
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div>
|
|
|
|
|
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  writeBuf[6] = 0x04; <span class="comment">// lT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  writeBuf[7] = 0x04; <span class="comment">// rT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  writeBuf[8] = 0x20; <span class="comment">// L force</span></div>
|
|
|
|
|
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  writeBuf[9] = 0x20; <span class="comment">// R force</span></div>
|
|
|
|
|
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  writeBuf[10] = 0x80; <span class="comment">// Length of pulse</span></div>
|
|
|
|
|
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  writeBuf[11] = 0x00; <span class="comment">// Off period</span></div>
|
|
|
|
|
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  writeBuf[12] = 0x00; <span class="comment">// Repeat count</span></div>
|
|
|
|
|
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  XboxCommand(writeBuf, 13);</div>
|
|
|
|
|
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <span class="keywordflow">if</span>(pFuncOnInit)</div>
|
|
|
|
|
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  pFuncOnInit(); <span class="comment">// Call the user function</span></div>
|
|
|
|
|
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00454"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85"> 454</a></span> <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85">XBOXONE::setRumbleOff</a>() {</div>
|
|
|
|
|
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  uint8_t writeBuf[13];</div>
|
|
|
|
|
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <span class="comment">// Activate rumble</span></div>
|
|
|
|
|
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  writeBuf[0] = 0x09;</div>
|
|
|
|
|
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  writeBuf[1] = 0x00;</div>
|
|
|
|
|
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <span class="comment">// Byte 2 is set in "XboxCommand"</span></div>
|
|
|
|
|
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  <span class="comment">// Continuous rumble effect</span></div>
|
|
|
|
|
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div>
|
|
|
|
|
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  writeBuf[4] = 0x00; <span class="comment">// Mode</span></div>
|
|
|
|
|
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div>
|
|
|
|
|
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  writeBuf[6] = 0x00; <span class="comment">// lT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  writeBuf[7] = 0x00; <span class="comment">// rT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  writeBuf[8] = 0x00; <span class="comment">// L force</span></div>
|
|
|
|
|
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  writeBuf[9] = 0x00; <span class="comment">// R force</span></div>
|
|
|
|
|
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  writeBuf[10] = 0x00; <span class="comment">// On period</span></div>
|
|
|
|
|
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  writeBuf[11] = 0x00; <span class="comment">// Off period</span></div>
|
|
|
|
|
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  writeBuf[12] = 0x00; <span class="comment">// Repeat count</span></div>
|
|
|
|
|
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  XboxCommand(writeBuf, 13);</div>
|
|
|
|
|
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  uint16_t button = <a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[index]);</div>
|
|
|
|
|
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keywordtype">bool</span> click = (ButtonClickState & button);</div>
|
|
|
|
|
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  ButtonClickState &= ~button; <span class="comment">// Clear "click" event</span></div>
|
|
|
|
|
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <span class="keywordflow">return</span> click;</div>
|
|
|
|
|
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00429"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc"> 429</a></span> int16_t <a class="code" href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc">XBOXONE::getAnalogHat</a>(<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a> a) {</div>
|
|
|
|
|
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  <span class="keywordflow">return</span> hatValue[a];</div>
|
|
|
|
|
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span> <span class="comment">/* Xbox Controller commands */</span></div>
|
|
|
|
|
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span> uint8_t XBOXONE::XboxCommand(uint8_t* data, uint16_t nbytes) {</div>
|
|
|
|
|
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  data[2] = cmdCounter++; <span class="comment">// Increment the output command counter</span></div>
|
|
|
|
|
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  uint8_t rcode = <a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>-><a class="code" href="class_u_s_b.html#affbc018973a588995457d535b0ac7ee7">outTransfer</a>(<a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</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#a1a9da90da4584db2de7c84f45bdafc89">XBOX_ONE_OUTPUT_PIPE</a> ].epAddr, nbytes, data);</div>
|
|
|
|
|
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span> <span class="preprocessor">#ifdef DEBUG_USB_HOST</span></div>
|
|
|
|
|
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="keywordflow">if</span>(rcode) {</div>
|
|
|
|
|
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">"\r\nXboxCommand failed. Return: "</span>), 0x80);</div>
|
|
|
|
|
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  D_PrintHex<uint8_t > (rcode, 0x80);</div>
|
|
|
|
|
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  }</div>
|
|
|
|
|
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span> <span class="preprocessor">#endif</span></div>
|
|
|
|
|
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  <span class="keywordflow">return</span> rcode;</div>
|
|
|
|
|
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span> <span class="comment">// The Xbox One packets are described at: https://github.com/quantus/xbox-one-controller-protocol</span></div>
|
|
|
|
|
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span> <span class="keywordtype">void</span> XBOXONE::onInit() {</div>
|
|
|
|
|
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  <span class="comment">// A short buzz to show the controller is active</span></div>
|
|
|
|
|
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  uint8_t writeBuf[13];</div>
|
|
|
|
|
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  <span class="comment">// Activate rumble</span></div>
|
|
|
|
|
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  writeBuf[0] = 0x09;</div>
|
|
|
|
|
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  writeBuf[1] = 0x00;</div>
|
|
|
|
|
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <span class="comment">// Byte 2 is set in "XboxCommand"</span></div>
|
|
|
|
|
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  <span class="comment">// Single rumble effect</span></div>
|
|
|
|
|
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div>
|
|
|
|
|
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  writeBuf[4] = 0x00; <span class="comment">// Mode</span></div>
|
|
|
|
|
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div>
|
|
|
|
|
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  writeBuf[6] = 0x04; <span class="comment">// lT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  writeBuf[7] = 0x04; <span class="comment">// rT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  writeBuf[8] = 0x20; <span class="comment">// L force</span></div>
|
|
|
|
|
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  writeBuf[9] = 0x20; <span class="comment">// R force</span></div>
|
|
|
|
|
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  writeBuf[10] = 0x80; <span class="comment">// Length of pulse</span></div>
|
|
|
|
|
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  writeBuf[11] = 0x00; <span class="comment">// Off period</span></div>
|
|
|
|
|
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  writeBuf[12] = 0x00; <span class="comment">// Repeat count</span></div>
|
|
|
|
|
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  XboxCommand(writeBuf, 13);</div>
|
|
|
|
|
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  <span class="keywordflow">if</span>(pFuncOnInit)</div>
|
|
|
|
|
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  pFuncOnInit(); <span class="comment">// Call the user function</span></div>
|
|
|
|
|
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00473"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85"> 473</a></span> <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85">XBOXONE::setRumbleOff</a>() {</div>
|
|
|
|
|
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  uint8_t writeBuf[13];</div>
|
|
|
|
|
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00476"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261"> 476</a></span> <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261">XBOXONE::setRumbleOn</a>(uint8_t leftTrigger, uint8_t rightTrigger, uint8_t leftMotor, uint8_t rightMotor) {</div>
|
|
|
|
|
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  uint8_t writeBuf[13];</div>
|
|
|
|
|
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="comment">// Activate rumble</span></div>
|
|
|
|
|
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  writeBuf[0] = 0x09;</div>
|
|
|
|
|
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  writeBuf[1] = 0x00;</div>
|
|
|
|
|
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="comment">// Byte 2 is set in "XboxCommand"</span></div>
|
|
|
|
|
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <span class="comment">// Continuous rumble effect</span></div>
|
|
|
|
|
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div>
|
|
|
|
|
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  writeBuf[4] = 0x00; <span class="comment">// Mode</span></div>
|
|
|
|
|
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div>
|
|
|
|
|
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  writeBuf[6] = leftTrigger; <span class="comment">// lT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  writeBuf[7] = rightTrigger; <span class="comment">// rT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  writeBuf[8] = leftMotor; <span class="comment">// L force</span></div>
|
|
|
|
|
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  writeBuf[9] = rightMotor; <span class="comment">// R force</span></div>
|
|
|
|
|
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  writeBuf[10] = 0xFF; <span class="comment">// On period</span></div>
|
|
|
|
|
<div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  writeBuf[11] = 0x00; <span class="comment">// Off period</span></div>
|
|
|
|
|
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  writeBuf[12] = 0xFF; <span class="comment">// Repeat count</span></div>
|
|
|
|
|
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  XboxCommand(writeBuf, 13);</div>
|
|
|
|
|
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <span class="comment">// Activate rumble</span></div>
|
|
|
|
|
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  writeBuf[0] = 0x09;</div>
|
|
|
|
|
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  writeBuf[1] = 0x00;</div>
|
|
|
|
|
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="comment">// Byte 2 is set in "XboxCommand"</span></div>
|
|
|
|
|
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <span class="comment">// Continuous rumble effect</span></div>
|
|
|
|
|
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div>
|
|
|
|
|
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  writeBuf[4] = 0x00; <span class="comment">// Mode</span></div>
|
|
|
|
|
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div>
|
|
|
|
|
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  writeBuf[6] = 0x00; <span class="comment">// lT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  writeBuf[7] = 0x00; <span class="comment">// rT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  writeBuf[8] = 0x00; <span class="comment">// L force</span></div>
|
|
|
|
|
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  writeBuf[9] = 0x00; <span class="comment">// R force</span></div>
|
|
|
|
|
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  writeBuf[10] = 0x00; <span class="comment">// On period</span></div>
|
|
|
|
|
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  writeBuf[11] = 0x00; <span class="comment">// Off period</span></div>
|
|
|
|
|
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  writeBuf[12] = 0x00; <span class="comment">// Repeat count</span></div>
|
|
|
|
|
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  XboxCommand(writeBuf, 13);</div>
|
|
|
|
|
<div class="line"><a name="l00493"></a><span class="lineno"> 493</span> }</div>
|
|
|
|
|
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00495"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261"> 495</a></span> <span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261">XBOXONE::setRumbleOn</a>(uint8_t leftTrigger, uint8_t rightTrigger, uint8_t leftMotor, uint8_t rightMotor) {</div>
|
|
|
|
|
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  uint8_t writeBuf[13];</div>
|
|
|
|
|
<div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <span class="comment">// Activate rumble</span></div>
|
|
|
|
|
<div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  writeBuf[0] = 0x09;</div>
|
|
|
|
|
<div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  writeBuf[1] = 0x00;</div>
|
|
|
|
|
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  <span class="comment">// Byte 2 is set in "XboxCommand"</span></div>
|
|
|
|
|
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  </div>
|
|
|
|
|
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  <span class="comment">// Continuous rumble effect</span></div>
|
|
|
|
|
<div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div>
|
|
|
|
|
<div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  writeBuf[4] = 0x00; <span class="comment">// Mode</span></div>
|
|
|
|
|
<div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div>
|
|
|
|
|
<div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  writeBuf[6] = leftTrigger; <span class="comment">// lT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  writeBuf[7] = rightTrigger; <span class="comment">// rT force</span></div>
|
|
|
|
|
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  writeBuf[8] = leftMotor; <span class="comment">// L force</span></div>
|
|
|
|
|
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  writeBuf[9] = rightMotor; <span class="comment">// R force</span></div>
|
|
|
|
|
<div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  writeBuf[10] = 0xFF; <span class="comment">// On period</span></div>
|
|
|
|
|
<div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  writeBuf[11] = 0x00; <span class="comment">// Off period</span></div>
|
|
|
|
|
<div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  writeBuf[12] = 0xFF; <span class="comment">// Repeat count</span></div>
|
|
|
|
|
<div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  XboxCommand(writeBuf, 13);</div>
|
|
|
|
|
<div class="line"><a name="l00515"></a><span class="lineno"> 515</span> }</div>
|
|
|
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
|
|
|
<div class="ttc" id="aclass_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#l00185">XBOXONE.h:185</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_u_s_b_html_affbc018973a588995457d535b0ac7ee7"><div class="ttname"><a href="class_u_s_b.html#affbc018973a588995457d535b0ac7ee7">USB::outTransfer</a></div><div class="ttdeci">uint8_t outTransfer(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *data)</div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00303">Usb.cpp:303</a></div></div>
|
|
|
|
|
<div class="ttc" id="amax3421e_8h_html_ab44a7968d08016b58d98951059c37076"><div class="ttname"><a href="max3421e_8h.html#ab44a7968d08016b58d98951059c37076">hrNAK</a></div><div class="ttdeci">#define hrNAK</div><div class="ttdef"><b>Definition:</b> <a href="max3421e_8h_source.html#l00218">max3421e.h:218</a></div></div>
|
|
|
|
|
<div class="ttc" id="astruct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html_a95cd9669dee9cab375a7c5e62284a01b"><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#a95cd9669dee9cab375a7c5e62284a01b">USB_ENDPOINT_DESCRIPTOR::bInterval</a></div><div class="ttdeci">uint8_t bInterval</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00154">usb_ch9.h:154</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_address_pool_html_aa92d7e8f0f515340ae2dc1679b627056"><div class="ttname"><a href="class_address_pool.html#aa92d7e8f0f515340ae2dc1679b627056">AddressPool::GetUsbDevicePtr</a></div><div class="ttdeci">virtual UsbDevice * GetUsbDevicePtr(uint8_t addr)=0</div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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#l00476">XBOXONE.cpp:476</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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#l00495">XBOXONE.cpp:495</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_address_pool_html"><div class="ttname"><a href="class_address_pool.html">AddressPool</a></div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00090">address.h:90</a></div></div>
|
|
|
|
|
<div class="ttc" id="astruct_ep_info_html_ac85bff70ad0e5d71e50cb501f4d8caf3"><div class="ttname"><a href="struct_ep_info.html#ac85bff70ad0e5d71e50cb501f4d8caf3">EpInfo::bmSndToggle</a></div><div class="ttdeci">uint8_t bmSndToggle</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00047">address.h:47</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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#l00410">XBOXONE.cpp:410</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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#l00429">XBOXONE.cpp:429</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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="amessage_8h_html_a22695bdc18ebde4a87dbe8633cb39593"><div class="ttname"><a href="message_8h.html#a22695bdc18ebde4a87dbe8633cb39593">NotifyFail</a></div><div class="ttdeci">#define NotifyFail(...)</div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00062">message.h:62</a></div></div>
|
|
|
|
|
<div class="ttc" id="astruct_usb_device_html_a86a815577ad7883437d3ca72b32b8e8a"><div class="ttname"><a href="struct_usb_device.html#a86a815577ad7883437d3ca72b32b8e8a">UsbDevice::lowspeed</a></div><div class="ttdeci">bool lowspeed</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00086">address.h:86</a></div></div>
|
|
|
|
@ -581,6 +600,7 @@ $(function() {
|
|
|
|
|
<div class="ttc" id="aclass_address_pool_html_a97df4ef42e50960ce2165f4cdb53e590"><div class="ttname"><a href="class_address_pool.html#a97df4ef42e50960ce2165f4cdb53e590">AddressPool::AllocAddress</a></div><div class="ttdeci">virtual uint8_t AllocAddress(uint8_t parent, bool is_hub=false, uint8_t port=0)=0</div></div>
|
|
|
|
|
<div class="ttc" id="axbox_enums_8h_html_a35901eab017bd1df5d2361634309adbd"><div class="ttname"><a href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a></div><div class="ttdeci">const uint16_t XBOX_BUTTONS[]</div><div class="ttdef"><b>Definition:</b> <a href="xbox_enums_8h_source.html#l00041">xboxEnums.h:41</a></div></div>
|
|
|
|
|
<div class="ttc" id="a_usb_core_8h_html_a44416ff64fc0e3691f98addac13d4595"><div class="ttname"><a href="_usb_core_8h.html#a44416ff64fc0e3691f98addac13d4595">USB_ERROR_CLASS_INSTANCE_ALREADY_IN_USE</a></div><div class="ttdeci">#define USB_ERROR_CLASS_INSTANCE_ALREADY_IN_USE</div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00098">UsbCore.h:98</a></div></div>
|
|
|
|
|
<div class="ttc" id="acontroller_enums_8h_html_a94f7389d205c78830a5441370d7870fda3754861e8c074fb088a2ed4f64786268"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda3754861e8c074fb088a2ed4f64786268">SHARE</a></div><div class="ttdeci">@ SHARE</div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00125">controllerEnums.h:125</a></div></div>
|
|
|
|
|
<div class="ttc" id="amessage_8h_html_a69619d86b1636f141c830ca82c7f45e7"><div class="ttname"><a href="message_8h.html#a69619d86b1636f141c830ca82c7f45e7">NotifyFailSetDevTblEntry</a></div><div class="ttdeci">#define NotifyFailSetDevTblEntry(...)</div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00058">message.h:58</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_u_s_b_html_a193e63c149fad46adabd77ceb09b2b24"><div class="ttname"><a href="class_u_s_b.html#a193e63c149fad46adabd77ceb09b2b24">USB::getDevDescr</a></div><div class="ttdeci">uint8_t getDevDescr(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *dataptr)</div><div class="ttdoc">defined(USB_METHODS_INLINE)</div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00801">Usb.cpp:801</a></div></div>
|
|
|
|
|
<div class="ttc" id="astruct_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>
|
|
|
|
@ -598,8 +618,8 @@ $(function() {
|
|
|
|
|
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html">USB_DEVICE_DESCRIPTOR</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00105">usb_ch9.h:105</a></div></div>
|
|
|
|
|
<div class="ttc" id="astruct_ep_info_html_a3a5b1c017a034cd9e06e76729e727c46"><div class="ttname"><a href="struct_ep_info.html#a3a5b1c017a034cd9e06e76729e727c46">EpInfo::bmNakPower</a></div><div class="ttdeci">uint8_t bmNakPower</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00049">address.h:49</a></div></div>
|
|
|
|
|
<div class="ttc" id="a_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="aclass_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#l00454">XBOXONE.cpp:454</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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#l00389">XBOXONE.cpp:389</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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#l00473">XBOXONE.cpp:473</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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#l00399">XBOXONE.cpp:399</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_u_s_b_html_a618eedabc161d8315be45cae0c8b6f89"><div class="ttname"><a href="class_u_s_b.html#a618eedabc161d8315be45cae0c8b6f89">USB::getConfDescr</a></div><div class="ttdeci">uint8_t getConfDescr(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t conf, uint8_t *dataptr)</div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00806">Usb.cpp:806</a></div></div>
|
|
|
|
|
<div class="ttc" id="aaddress_8h_html_a517dfa014946e2d087d197312234a1de"><div class="ttname"><a href="address_8h.html#a517dfa014946e2d087d197312234a1de">USB_NAK_MAX_POWER</a></div><div class="ttdeci">#define USB_NAK_MAX_POWER</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00034">address.h:34</a></div></div>
|
|
|
|
|
<div class="ttc" id="acontroller_enums_8h_html_a34dad8f0a0927471137c403216597093a7f1fb2db5381286691f4dec179ed5d5a"><div class="ttname"><a href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a7f1fb2db5381286691f4dec179ed5d5a">RightHatY</a></div><div class="ttdeci">@ RightHatY</div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00226">controllerEnums.h:226</a></div></div>
|
|
|
|
@ -617,7 +637,7 @@ $(function() {
|
|
|
|
|
<div class="ttc" id="a_usb_core_8h_html_af192c59cafe2192ad802b22e6dbc077d"><div class="ttname"><a href="_usb_core_8h.html#af192c59cafe2192ad802b22e6dbc077d">USB_ERROR_EPINFO_IS_NULL</a></div><div class="ttdeci">#define USB_ERROR_EPINFO_IS_NULL</div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00096">UsbCore.h:96</a></div></div>
|
|
|
|
|
<div class="ttc" id="astruct_usb_device_html"><div class="ttname"><a href="struct_usb_device.html">UsbDevice</a></div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00082">address.h:82</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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#l00181">XBOXONE.h:181</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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#l00380">XBOXONE.cpp:380</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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#l00385">XBOXONE.cpp:385</a></div></div>
|
|
|
|
|
<div class="ttc" id="aclass_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="acontroller_enums_8h_html_a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae">XBOX</a></div><div class="ttdeci">@ XBOX</div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00151">controllerEnums.h:151</a></div></div>
|
|
|
|
|
<div class="ttc" id="a_usb_core_8h_html_afe2fedb4b0ccc89a688c0b4b59691ce0"><div class="ttname"><a href="_usb_core_8h.html#afe2fedb4b0ccc89a688c0b4b59691ce0">USB_ERROR_ADDRESS_NOT_FOUND_IN_POOL</a></div><div class="ttdeci">#define USB_ERROR_ADDRESS_NOT_FOUND_IN_POOL</div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00095">UsbCore.h:95</a></div></div>
|
|
|
|
|