Skip to content

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

Merged
spydon merged 1 commit intoflame-engine:mainfrom
wantroba:main
Jul 9, 2025
Merged

fix: Correct dpad axis mapping and add support for start/select/home buttons (iOS)#65
spydon merged 1 commit intoflame-engine:mainfrom
wantroba:main

Conversation

@wantroba
Copy link
Contributor

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
Copy link
Member

@luanpotter luanpotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think genering the timestamp is totally fine if one is not provided by the platform.

@spydon spydon merged commit 1aef0c2 into flame-engine:main Jul 9, 2025
6 of 8 checks passed
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.

3 participants