Provenance-Emu / Provenance

iOS & tvOS multi-emulator frontend, supporting various Atari, Bandai, NEC, Nintendo, Sega, SNK and Sony console systems… Get Started: https://wiki.provenance-emu.com |
https://provenance-emu.com
Other
5.93k stars 686 forks source link

8bitdo M30 support #1499

Closed jdelomenie closed 3 years ago

jdelomenie commented 3 years ago

Hi

I'm trying to use my new 6 buttons M30 controller from 8bitdo on iOS. It's properly connected under Accessibility switch under the proper name.

When I use it in any games, D-pad is correct, A & B as well, however C key is mapped to X ! looks like the C and Z keys are ignored and only map 4 keys as any major 8bitdo controllers except the M30 (megadrive style)

Any options to map the M30 keys to Provenance sega MD games as expected ?

Many thanks Julien

mrjschulte commented 3 years ago

Hi, I don't think this is should really be tagged as a bug and the issue you are facing is due to the fact that the M30 doesn't officially map into any of the current buttons schemes available inside of iOS/Provenance.

I'm going to change this Issue to a feature request, and as a fellow M30 owner, I can't wait for the day when we can re-assign our buttons inside of Provenance (or have a special M30 enable option under the control section).

mrjschulte commented 3 years ago

I started building out a new Provenance branch that allows you to select the 8BitDo M30 as a special controller mapping to be used with the Sega Genesis/MD core. When enabled, it maps the 6button Sega Controller 1:1 to the 8BitDo M30. It hasn't been tested on iOS yet but works as expected on tvOS.

mrjschulte commented 3 years ago

Doing some iOS testing called for a revert of the "Start" on the M30 to be relocated to the original R-Shoulder trigger due to an overlap with the Provenance in-game Menu. tvOS is fine and works as expected.

jdelomenie commented 3 years ago

Sounds great ! As I'm not a developper to rebuild any sources, would you update me when this M30 support will be released in any ipa build file ? If doable, can you please share which one it will be (ie 1.5b xxxxx.ipa) ? Many thanks in advance

mrjschulte commented 3 years ago

We'll keep this ticket going and once the M30 changes are in, and this Issue is closed, you should get a notification but I won't be able to tell you about the .ipa build or build number that will have this feature.

mrjschulte commented 3 years ago

Here's a screenshot on tvOS showing the supported M30 mapping option under Settings, it's disabled by default of course:

Screen Shot 2021-01-31 at 4 01 42 PM

mrjschulte commented 3 years ago

PR #1500 is in.

jdelomenie commented 3 years ago

Awesome ! Maybe you can generate an ipa file to test it as an early adopter ? :) It might be helpful to get it tested on iOS as well, not only tvOS.

mrjschulte commented 3 years ago

This has now been merged. Tested as working on both tvOS and iOS. Perhaps other cores will get M30 support in the future as well but closing this for now! Thanks.

jdelomenie commented 3 years ago

@mrjschulte How to build iOS ipa file with your code changes ? as shared I'm not dev specialist and dont have any Mac available to perform code build. Would love to test before 1.5 official release