Skip to content

fix: Correct dpad axis mapping and add support for start/select/home buttons (iOS) #65

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wantroba
Copy link

I rewrote GamepadsIosPlugin.swift following Apple's documentation https://developer.apple.com/documentation/gamecontroller and also keeping the plugin consistent and working.

With this I fixed the dpad axis mapping issue that appeared in #64. In addition, now the buttons buttonMenu, buttonOptions and buttonHome are also mapped when available.

Note: The only thing I couldn't keep was the timestamp that used to come from the event, now the time is generated by the plugin. If there is a need and a way to retrieve this value please let me know or correct my code for it.

@wantroba wantroba changed the title fix(iOS/GamepadsIosPlugin): correct dpad axis mapping and add support for start/select/home buttons fix: correct dpad axis mapping and add support for start/select/home buttons (iOS) Jun 23, 2025
@wantroba wantroba changed the title fix: correct dpad axis mapping and add support for start/select/home buttons (iOS) fix: Correct dpad axis mapping and add support for start/select/home buttons (iOS) Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant