# Zero delay usb encoder?

**URL:** <https://forum.makecode.com/t/zero-delay-usb-encoder/8709>\
**Category:** Arcade\
**Created:** [June 13, 2021, 5:19am UTC](https://forum.makecode.com/t/zero-delay-usb-encoder/8709 "2021-06-13T05:19:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sofiania](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sofiania/32/21889_2.png) [@sofiania](https://forum.makecode.com/u/sofiania)\
**Post date:** [June 13, 2021, 5:19am UTC](https://forum.makecode.com/t/zero-delay-usb-encoder/8709/1 "2021-06-13T05:19:04Z")

</div>

Is it possible to wire the buttons through a zero delay usb encoder with makecode arcade + a raspberry pie, like you can with RetroPie?

---

<div class="post-metadata">

**Author:** ![sofiania](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sofiania/32/21889_2.png) [@sofiania](https://forum.makecode.com/u/sofiania)\
**Post date:** [June 14, 2021, 4:33pm UTC](https://forum.makecode.com/t/zero-delay-usb-encoder/8709/2 "2021-06-14T16:33:27Z")

</div>

Edit: Got the Makecode games to show up in RetroPie with Vegz78:s tutorial and McAirpos ([https://vegz78.github.io/McAirpos/](https://vegz78.github.io/McAirpos/)), but the games won’t start, so I guess it’s because I haven’t yet installed any speakers/sound.

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [June 23, 2021, 3:38pm UTC](https://forum.makecode.com/t/zero-delay-usb-encoder/8709/3 "2021-06-23T15:38:47Z")

</div>

Hi @sofiania,

Sorry I did not notice this issue, since you did not ping me with @, like @Vegz78… 😉

Great that you opened an issue at the McAirpos GitHub repo about the write permission need for the makecode games folder, so that your MakeCode Arcade games do not crash in RetroPie on RPi anymore:

> <https://github.com/Vegz78/McAirpos/issues/13>
>
> Hi! Is it correct that if you integrate makecode in retropie like this, you need… USB ALSA sound, or it will crash? I have this issue. I have tried both the 3,5 mm jack, and now an external sound card with USB ALSA, but the makecode games in retropie still won't open att all.

For your SJ@JX Arcade controller trouble, I have reopened @Dace’s issue, where he solved this for the same controller not long ago:

> <https://github.com/Vegz78/McAirpos/issues/10>
>
> Hi! I talked a bit about this on the Makecode Arcade forum with you. At a bit o…f a loss how to do this I am using this encoder https://www.amazon.ca/gp/product/B07FZ3YT1G/ref=ppx\_yo\_dt\_b\_asin\_title\_o00\_s00?ie=UTF8&psc=1
> and when setting up the joystick and keys in emulation station I configure them all. However as I mentioned the start/select will not bring me out of Makecode as it does in Mame. I know you mentioned the .cfg files but I am a bit new to Raspberry Pi so if you could walk me through how to get those to work in Makecode that would be awesome.

Maybe, since @Dace now is the world’s leading expertise on this particular subject, and with proven success, that he could give you some further support directly if you are still stuck after reading his write-up? 😉

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [June 24, 2021, 3:27pm UTC](https://forum.makecode.com/t/zero-delay-usb-encoder/8709/4 "2021-06-24T15:27:48Z")

</div>

Any further luck with the SJ@JX Arcade controllers, @sofiania and/or @Dace ?

---

<div class="post-metadata">

**Author:** ![sofiania](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sofiania/32/21889_2.png) [@sofiania](https://forum.makecode.com/u/sofiania)\
**Post date:** [June 24, 2021, 7:55pm UTC](https://forum.makecode.com/t/zero-delay-usb-encoder/8709/5 "2021-06-24T19:55:54Z")

</div>

Maybe 🙂 , but I ran into another problem that I need to solve first … the makecode games become destorted on the screen I want to use (a Pi-top Ceed). The makecode game screen worked on my pi-top 1 which is like, the same product almost. On the pi- top ceed, the retropie roms work, but the makecode games look like this.

 ![20210624_181757](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/5f755f32da4fdf27f45637202163242cbca222d5.jpeg)  
Does anyone have a clue to why? Is the resolution somehow hard coded in makecode?

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [June 25, 2021, 5:26pm UTC](https://forum.makecode.com/t/zero-delay-usb-encoder/8709/6 "2021-06-25T17:26:26Z")

</div>

All I know is that MakeCode Arcade advertises with “…160x120 screen showing 16 colors…” and that the games write graphics directly to the framebuffer.

How this relates to the different screen resolution settings is beyond my knowledge, but the games have run fine on many different HDMI outputs at home, like 1920x1080, 1680x1050 etc.

Perhaps it’s better to post the screen issue in a new thread with a screen related subject under the “Help” section, and maybe ping @MakeCode or one of the developers/moderators?

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [July 12, 2021, 3:14pm UTC](https://forum.makecode.com/t/zero-delay-usb-encoder/8709/7 "2021-07-12T15:14:42Z")

</div>

Finally reporting to be working with the Zero Delay USB Encoder:

> <https://github.com/Vegz78/McAirpos/issues/15#issuecomment-872328078>
>
> I have now changed to this encoder https://www.electrokit.com/uploads/productfil…e/41017/SBC-ZDE-Datasheet.pdf, because it's the one the kids will have (I'll revert to the SJ@JX later). Could you point me to tha latest issue on this encoder, if there is anyone else who have tryed it? It would be really helpful. I have worked out the following so far:
> 
> Dragonrise inc generic USB joystick on event 4
> 
> Button 1 (K1) = TRIGGER
> Button 2 (K2) = BTN THUMB = A
> Button 3 (K3) = BTN THUMB2 = B
> Button 4 (K4) = BTN TOP
> Button 5 (L2) = BTN TOP 2
> Button 6 (R2) = BTN PINKIE
> Button 7 (L1) = BTN BASE
> Button 8 (R1) = BTN BASE 2
> Button 9 (SE) = BTN BASE 3
> Button 10 (ST) = BTN BASE 4
> Button 11 (K11) = BTN BASE 5
> Button 12 (K12) = BTN BASE 6
> 
> I get A and B and the joystick to work, but the rest seem to work sometimes and sometimes not, and I randomly can't exit. It also seems like the B button (which acts like the B button in the game, also can select, hm...
> 
> \_Originally posted by @sofiania in https://github.com/Vegz78/McAirpos/issues/10#issuecomment-869524942\_

Thanks for all the effort, @sofiania!
