Kunjungi website Twin 2024

Twinbet Link Alternatif

Conflicting joysticks?

Hey all, I just built a new arcade box that looks jus great! It has 15 buttons and 2 joysticks, all connected to a gamepad that sends the commands to the PI via USB. All looks good, I got my games running, but now I want to go 2 players. This is where I start having problems. If I connect the gamepad to my mac, I see 4 axis, with readings for each one, plus each button. Perfect! If I connect it to the PI and run jstest, I only see 2 axis, with both joysticks reporting the same values. As if I only had one joystick. Very weird. Driver problems? So when I try to multi-play, both players move when I use either joystick. Next, I tried changing the 4 connection pins of the “player 2” joystick to 4 different pins on the gamepad. I was like – that’s it! It’s like having a joystick for player 1, and 4 buttons for player 2. Guess what? Now one of the characters is controlled by of the joysticks as it should, but the other joystick is controlling both players. How about that!? I am lost. What should I do next?

TMNTturtlguy @bogdanripa
отредактировано

@bogdanripa what are your controllers recognized as? When you go to start and configure input, what does it say? You must also be very careful to be sure that both controller setups are wired 100% exactly the same. The wiring must match as well as the pin locations you plug the wires from the buttons into the usb encoder. Everything has to be identical. Last question, does each of your controllers run to a separate usb encoder with its own usb connection to the pie?

bogdanripa
отредактировано

  1. Wiring.

Yes, all is identical. Also, there is a single board where all the wires come in, so only one USB connector to the pie.

0_1498972111830_ae8d84ca-d4ab-4c4c-9a38-7f86a82d1f74-image.png

If I “Configure Input”, it says that “2 gamepads detected”. As I hold a button, it displays “Twin USB gamepad”, but as I go through the mapping procedure, it only configures “gamepad 1”.

Then, as I configure the D-PAD UP/DOWN/LEFT/RIGHT, it says “AXIS 1-, 1+, 0-, 0+” for both joysticks.

Running “jstest /dev/input/js1” also shows only 2 axis (0 and 1), both of them being triggered when I move either joystick:

0_1498972457034_06d6d2f2-364e-4a36-a710-e6a62be8dab2-image.png

So at this point one would be – oh, it’s a hardware problem. The gamepad is broken or the wiring is off.

So next, I connect the gamepad to my computer and run some similar tests:

0_1498972043122_ee03fd39-71e4-4285-9a04-8b402921b1fa-image.png

And here everything looks just fine, all 4 axis are visible and function independently.

Nothing to Show Right Now

It appears whatever you were looking for is no longer here or perhaps wasn’t here to begin with. You might want to try starting over from the homepage to see if you can find what you’re after from there.

American International School in Cyprus | P O Box 23847, 1686 Nicosia, Cyprus | +357-22316345
The American International School in Cyprus (AISC) has been educating students since 1987. Known for excellence in teaching and a rich extracurricular program, AISC serves students from more than 32 countries. An ESOL Education school, AISC is a part of a network of exceptional internationals schools around the world in locations such as Dubai, Cairo, Hong Kong, Nicosia and Lebanon.

AMERICAN INTERNATIONAL SCHOOL © COPYRIGHT 2022

Dengan Twinbet Link Alternatif yang dicari: