Help with X and Y buttons

I’m trying to make an X and Y button on a shoe box controller by using P2 A and B buttons, but it currently uses 2 USB encoders. Is there a way to set P2 A and B to the K3 and K4 positions on the same encoder the P1 buttons are plugged into?

You might be better off using a keyboard encoder instead and mapping the additional buttons to the appropriate keyboard keys.

keyboard encoder? what’s that?

I won’t link to a specific product, but hop on your favorite shopping site or search engine and look for “arcade usb keyboard encoder.” You also can take a look at the following page in the MakeCode Arcade docs for a sample build with arcade controls.

Basically, there are two types of encoders to which you can connect arcade controls. One kind of encoder imitates a game controller. These controllers are more frequently used in modern builds, since most modern software expects players to use game controllers.

Another, older type of encoder instead mimics a keyboard. So, when you connect an arcade joystick to a keyboard encoder, moving the joystick to the left could simulate pressing the A key on a keyboard. Add a second joystick, and moving the second joystick to the left could map to the J key.

1 Like