Skip to content

Commit 06e930d

Browse files
deploy: c551fa6
1 parent 7f9d0a8 commit 06e930d

File tree

2 files changed

+34
-50
lines changed

2 files changed

+34
-50
lines changed

_sources/ria.rst.txt

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -393,29 +393,27 @@ faster (125Hz).
393393
===========
394394

395395
The RIA supports up to four gamepads connected via USB. There is no way to
396-
support all controllers without writing three different classes of
397-
drivers: XInput, Sony, and HID. So that's what's in the RIA. Even so,
398-
there is no standard button layout for HID so ``des.c`` will need to be
399-
adjusted to support new gamepads.
396+
support all controllers without writing three different classes of drivers:
397+
XInput, Sony, and HID. So that's what's in the RIA. Even so, there is no
398+
standard button layout for HID so ``des.c`` will need to be adjusted to
399+
support new gamepads.
400400

401-
Therefore the recommended gamepads for the Picocomputer are: Xbox 360,
402-
Xbox One/Series, DualShock 4, and DualSense 5. There are plenty of
403-
third-party Xbox and PlayStation controllers which should work fine as
404-
well.
401+
Therefore, the recommended gamepads for the Picocomputer are: Xbox 360, Xbox
402+
One/Series, DualShock 4, and DualSense 5. There are plenty of third-party
403+
Xbox and PlayStation controllers which should work fine as well.
405404

406405
If your HID or third-party gamepad doesn't work, it probably needs to be
407-
added to ``des.c``. Be aware that any issues submitted in this regard
408-
cannot be resolved by Rumbledethumps—who doesn't have your gamepad. The
409-
community needs to step up here if excellent HID controller support is
406+
added to ``des.c``. Any issues submitted in this regard cannot be resolved
407+
by Rumbledethumps—who doesn't have your gamepad. The community needs to
408+
step up here if excellent third-party and HID controller support is
410409
desired.
411410

412411
Be aware that this project pushes TinyUSB to its limit. Okay, let's be
413412
frank here: the TinyUSB stack is janky as hell and doesn't have any
414413
documentation. If you do a lot of plugging and unplugging it will
415-
eventually crash. Some devices will also break the boot sequence. Be
416-
aware that any issues submitted in this regard cannot be resolved by
417-
Rumbledethumps. The community needs to step up here if an excellent USB
418-
stack is desired.
414+
eventually crash. Some devices will also break the boot sequence. Any
415+
issues submitted in this regard cannot be resolved by Rumbledethumps. The
416+
community needs to step up here if an excellent USB stack is desired.
419417

420418
Enable and disable access to the RIA gamepad XRAM registers by setting the
421419
extended register. The register value is the XRAM start address of the
@@ -468,7 +466,7 @@ your favorite 4-way game without worry.
468466
- Description
469467
* - 0
470468
- DPAD
471-
- Extended buttons
469+
-
472470
* bit 0: Direction pad up
473471
* bit 1: Direction pad down
474472
* bit 2: Direction pad left
@@ -479,7 +477,7 @@ your favorite 4-way game without worry.
479477
* bit 7: Connected
480478
* - 1
481479
- STICKS
482-
- Extended buttons
480+
-
483481
* bit 0: Left stick up
484482
* bit 1: Left stick down
485483
* bit 2: Left stick left
@@ -490,7 +488,7 @@ your favorite 4-way game without worry.
490488
* bit 7: Right stick right
491489
* - 2
492490
- BTN0
493-
- Extended buttons
491+
-
494492
* bit 0: A or Cross
495493
* bit 1: B or Circle
496494
* bit 2: X or Square
@@ -501,7 +499,7 @@ your favorite 4-way game without worry.
501499
* bit 7: Start/Menu
502500
* - 3
503501
- BTN1
504-
- Extended buttons
502+
-
505503
* bit 0: L2
506504
* bit 1: R2
507505
* bit 2: L3

ria.html

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -473,26 +473,24 @@ <h2><a class="toc-backref" href="#id15">5. Mouse</a><a class="headerlink" href="
473473
<div class="section" id="gamepads">
474474
<h2><a class="toc-backref" href="#id16">6. Gamepads</a><a class="headerlink" href="#gamepads" title="Permalink to this headline"></a></h2>
475475
<p>The RIA supports up to four gamepads connected via USB. There is no way to
476-
support all controllers without writing three different classes of
477-
drivers: XInput, Sony, and HID. So that’s what’s in the RIA. Even so,
478-
there is no standard button layout for HID so <code class="docutils literal notranslate"><span class="pre">des.c</span></code> will need to be
479-
adjusted to support new gamepads.</p>
480-
<p>Therefore the recommended gamepads for the Picocomputer are: Xbox 360,
481-
Xbox One/Series, DualShock 4, and DualSense 5. There are plenty of
482-
third-party Xbox and PlayStation controllers which should work fine as
483-
well.</p>
476+
support all controllers without writing three different classes of drivers:
477+
XInput, Sony, and HID. So that’s what’s in the RIA. Even so, there is no
478+
standard button layout for HID so <code class="docutils literal notranslate"><span class="pre">des.c</span></code> will need to be adjusted to
479+
support new gamepads.</p>
480+
<p>Therefore, the recommended gamepads for the Picocomputer are: Xbox 360, Xbox
481+
One/Series, DualShock 4, and DualSense 5. There are plenty of third-party
482+
Xbox and PlayStation controllers which should work fine as well.</p>
484483
<p>If your HID or third-party gamepad doesn’t work, it probably needs to be
485-
added to <code class="docutils literal notranslate"><span class="pre">des.c</span></code>. Be aware that any issues submitted in this regard
486-
cannot be resolved by Rumbledethumps—who doesn’t have your gamepad. The
487-
community needs to step up here if excellent HID controller support is
484+
added to <code class="docutils literal notranslate"><span class="pre">des.c</span></code>. Any issues submitted in this regard cannot be resolved
485+
by Rumbledethumps—who doesn’t have your gamepad. The community needs to
486+
step up here if excellent third-party and HID controller support is
488487
desired.</p>
489488
<p>Be aware that this project pushes TinyUSB to its limit. Okay, let’s be
490489
frank here: the TinyUSB stack is janky as hell and doesn’t have any
491490
documentation. If you do a lot of plugging and unplugging it will
492-
eventually crash. Some devices will also break the boot sequence. Be
493-
aware that any issues submitted in this regard cannot be resolved by
494-
Rumbledethumps. The community needs to step up here if an excellent USB
495-
stack is desired.</p>
491+
eventually crash. Some devices will also break the boot sequence. Any
492+
issues submitted in this regard cannot be resolved by Rumbledethumps. The
493+
community needs to step up here if an excellent USB stack is desired.</p>
496494
<p>Enable and disable access to the RIA gamepad XRAM registers by setting the
497495
extended register. The register value is the XRAM start address of the
498496
gamepad registers. Any invalid address disables the gamepads.</p>
@@ -542,8 +540,7 @@ <h2><a class="toc-backref" href="#id16">6. Gamepads</a><a class="headerlink" hre
542540
<tbody>
543541
<tr class="row-even"><td><p>0</p></td>
544542
<td><p>DPAD</p></td>
545-
<td><dl class="simple">
546-
<dt>Extended buttons</dt><dd><ul class="simple">
543+
<td><ul class="simple">
547544
<li><p>bit 0: Direction pad up</p></li>
548545
<li><p>bit 1: Direction pad down</p></li>
549546
<li><p>bit 2: Direction pad left</p></li>
@@ -553,14 +550,11 @@ <h2><a class="toc-backref" href="#id16">6. Gamepads</a><a class="headerlink" hre
553550
<li><p>bit 6: Sony button faces</p></li>
554551
<li><p>bit 7: Connected</p></li>
555552
</ul>
556-
</dd>
557-
</dl>
558553
</td>
559554
</tr>
560555
<tr class="row-odd"><td><p>1</p></td>
561556
<td><p>STICKS</p></td>
562-
<td><dl class="simple">
563-
<dt>Extended buttons</dt><dd><ul class="simple">
557+
<td><ul class="simple">
564558
<li><p>bit 0: Left stick up</p></li>
565559
<li><p>bit 1: Left stick down</p></li>
566560
<li><p>bit 2: Left stick left</p></li>
@@ -570,14 +564,11 @@ <h2><a class="toc-backref" href="#id16">6. Gamepads</a><a class="headerlink" hre
570564
<li><p>bit 6: Right stick left</p></li>
571565
<li><p>bit 7: Right stick right</p></li>
572566
</ul>
573-
</dd>
574-
</dl>
575567
</td>
576568
</tr>
577569
<tr class="row-even"><td><p>2</p></td>
578570
<td><p>BTN0</p></td>
579-
<td><dl class="simple">
580-
<dt>Extended buttons</dt><dd><ul class="simple">
571+
<td><ul class="simple">
581572
<li><p>bit 0: A or Cross</p></li>
582573
<li><p>bit 1: B or Circle</p></li>
583574
<li><p>bit 2: X or Square</p></li>
@@ -587,14 +578,11 @@ <h2><a class="toc-backref" href="#id16">6. Gamepads</a><a class="headerlink" hre
587578
<li><p>bit 6: Select/Back</p></li>
588579
<li><p>bit 7: Start/Menu</p></li>
589580
</ul>
590-
</dd>
591-
</dl>
592581
</td>
593582
</tr>
594583
<tr class="row-odd"><td><p>3</p></td>
595584
<td><p>BTN1</p></td>
596-
<td><dl class="simple">
597-
<dt>Extended buttons</dt><dd><ul class="simple">
585+
<td><ul class="simple">
598586
<li><p>bit 0: L2</p></li>
599587
<li><p>bit 1: R2</p></li>
600588
<li><p>bit 2: L3</p></li>
@@ -604,8 +592,6 @@ <h2><a class="toc-backref" href="#id16">6. Gamepads</a><a class="headerlink" hre
604592
<li><p>bit 6: Undefined</p></li>
605593
<li><p>bit 7: Undefined</p></li>
606594
</ul>
607-
</dd>
608-
</dl>
609595
</td>
610596
</tr>
611597
<tr class="row-even"><td><p>4</p></td>

0 commit comments

Comments
 (0)