Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 controller devices for Raspberry Pi/Linux natively compiled games #2245

Closed
Vegz78 opened this issue Jul 23, 2020 · 3 comments
Closed

2 controller devices for Raspberry Pi/Linux natively compiled games #2245

Vegz78 opened this issue Jul 23, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request hardware

Comments

@Vegz78
Copy link

Vegz78 commented Jul 23, 2020

Hi,

Now that native compilation of MakeCode Arcade games for Raspberry Pi/ARM Linux soon is working with either a single keyboard or a single gamepad controller, it would be nice in the near future to also have support for 2 different control devices(keyboard and gamepad, or 2 gamepads) to support two player games.

Today, it's only possible to setup 1 gamepad OR keyboard in the /sd/arcade.cfg configuration file.

I have submitted this issue after a brief dialogue with @mmoskal about the subject.

Thanks for a great product and I hope for a positive response!

Br,
Vegard

@abchatra abchatra added bug Something isn't working p2 enhancement New feature or request hardware and removed bug Something isn't working p2 labels Jul 23, 2020
@Vegz78
Copy link
Author

Vegz78 commented Dec 23, 2020

Hi @mmoskal,

I found a solution for using 2 gamepads simultaneously in natively executable MakeCode Arcade games by mapping them to the keyboard controls already supporting 2 players, using uinput-mapper.

I am hoping my work-around is enough to close this issue:
https://github.com/Vegz78/McAirpos

Br,
Vegard

@Vegz78 Vegz78 closed this as completed Dec 23, 2020
@mmoskal
Copy link
Member

mmoskal commented Dec 23, 2020

Sounds great, at least as an interim solution. Thanks!

@Vegz78
Copy link
Author

Vegz78 commented Jul 13, 2021

One short follow-up comment:
The underlying problem was not really the lack of support for 2 controllers/players, which is demonstrated with multiple projects with 2 players on 1 keyboard or multiple controllers/players on the same input device/GPIO(ref. Microsoft's own RPi Zero/Cardboard/Arcade projects).

But the issue is that there, to my knowledge, is only support for 1 SCANCODES=/dev/input/eventX device in /sd/arcade.cfg, and that the MCA games on the RPi, to my knowledge, only interprets EV_KEY values and not EV_ABS values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hardware
Projects
None yet
Development

No branches or pull requests

3 participants