-
Notifications
You must be signed in to change notification settings - Fork 11
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
[GamePi20 controller] Need help configuring buttons(possibly working) #5
Comments
Hi @Kay-Wolfe, With reference to issue #3, I was sadly a little naive when I just before Christmas wanted to share working code based on my PS3 Controllers, which were the only controllers I had at hand at that moment. I turns out that the PS3 controller's RAW "DPAD" key events were not at all so universally used on other gamepads as I thought. Having ordered and just received a couple of new controllers, I'm currently working on some thoughts on a solution that supports more controllers out of the box AND let's the users configure it more freely(which at the moment unfortunately is hardcoded together with the autodetection of (PS3)controllers and blocks the edits of the arcade.py mapping files). Thank you very much for your input above, and what would be very helpful for my soon to come fix is if you could please provide me with the RAW event info which both the game elf files and McAirpos launcher and ui-mapper uses for controllers?:
This would be of great help to me for making a fix(and amends for, in retrospect, a little premature advertising...) sooner. Hope to hear back from you again soon with the requested information. Br, PS: The more such copies of such key layouts as in point 2 above I get, for as many different controllers as possible, the more generic patterns and solutions I expect to find. If others could contribute, too, I would really appreciate it. ;-) |
Hey there, Here's the info you've requested
Additional info:
Running their test tool
|
Thank you very much, @Kay-Wolfe!!! |
Hey there, I'm not familiar with C (webdev here). But digging around I see this code
It seems like your code forced to change the /sd/arcade.cfg to 0, when no gamepad is detected. GPIO based like mine slips the check. So what I did for now is:
|
Great work, @Kay-Wolfe! You are right about a number of things here.
But your workaround here should do the trick for now, and I will include it right away, so that we at least have increased working gamepad support from only PS3 controllers(and clones) to all rewireable arcade gamepads as well. Could you please upload your arcade1.py config file here, which I hope to include in the repo? My hope is to collect and make different config files for different gamepad types, which then easily can be customized and copied over the arcadeX.py files by the users. Thanks for your help and what do you think? |
UPDATE: Hopefully it will work also for your controller, without the need to rewire physically and remap buttons in RetroPie, when I just figure how to implement this with the least amount of possible mess. |
yep EV_ABS to EV_KEY seems to be a pain. Which is why I abandoned uinput-mapper. For future referrence:Users of :
My driver config (/etc/modprobe.d/joystick.conf):
which will map X and Y axis away from any buttons for arcade (to R1, L1, X and Y)
note: I removed my debugging keyboard so it's event0 now. During my struggle I found:
I'm not sure whether that works with elf's arcade.cfg. My opinion: |
Thanks for all your help and tips, @Kay-Wolfe! I've added the "nomap" argument you requested, so that you can skip auto-detection and -setup of controllers and manually use /sd/arcade.cfg directly with the elf game files instead. I have also expanded and tested successfully autoconf and EV_ABS to EV_KEY mapping with uinput-mapper on a range of new controllers, which I would really appreciate if you also could test and confirm if it works with your GamePi20 controller(I hope) without the rewirings and remappings you were forced to do earlier. I will then close this issue in a few days, if there are no unresolved related things pending. |
I think I have a similar problem, with EG Start Arcade setup |
Hi @lars-derichter, |
I think we're overcomplicating the joypad situation.
A uinput-remapper replacement (or launcharc itself) that would:
Which will probably covers most use case, with minor config change (jsid and player num above) |
You're probably right... Did you ever, with the new I'm thinking about simplifying the uinput mapping for a 2nd/2 player controller to a fixed main 1 player controller in /sd/arcade.cfg, now that it is possible to auto-map without keyboard connected. There is some occasional instability, which might be caused by certain keyboard key combinations and/or heavy arcadeX.py mapping functions.
Great inputs, and I agree that there are still room for improvements and simplifications, and hopefully reuse of some existing solutions. I've been under the impression that the MakeCode Arcade elf game files have been locked to digital EV_KEY buttons, but if the bonnet arcade.cfg works, and works with EV_ABS, a lot would be much easier. With the most recent reorganizations of the launCharc code, the uinput-mapper part is more or less a self contained module, which quite easily and with another option argument can be supplemented with with your parser idea here, or maybe one of the mappers you mentioned in your earlier comments. At the moment, though, I need a small brake before I can start with bigger new ideas, and I would like to see if the increased flexibility with the But, if you have a working prototype for your idea(s), I would gladly have a look at it/accept a pull-request to incorporate it as an additional/optional module. Thanks for your support and thorough efforts!!! |
Hi @Kay-Wolfe, Did you get your GamePi20 controller to work? |
Closed due to missing response from @Kay-Wolfe. Unconfirmed whether the GamePi20 controller works or not. Please update if you have new info regarding the GamePi20. |
Hi @Kay-Wolfe, It seems, with similar suggestions by the Waveshare Service Team, that your described attempt here with only using /sd/arcade.cfg, the However, there was a new attempt with the GamePi20, which has been confirmed to work with a special uinput-mapper arcade1.py configuration file, here: |
I have GamePi20 kit and retropie and McAirpos is running perfectly on that. I only have trouble configuring the buttons for it. On my
/opt/retropie/configs/all/retroarch-joypads/GPIO Controller 1.cfg
:how do I translate this into McAirpos? i've tried changing
arcade.dfg.controller
.ps: my son made this to help me out https://makecode.com/_00RXmREYfK9q
The text was updated successfully, but these errors were encountered: