1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-20 14:45:44 +00:00
Files
godot/platform/ios/os_ios.h
Janis Kirsteins e77a011188 Fix a crash in Joypad initialization on iOS
Creating a JoypadApple can trigger a notification to add a joypad (if
a device is already connected before the game is started). Observed
on iOS 18.2.1 with a Nimbus SteelSeries.

However at this point the Input singleton is not available yet, so
it will crash.

This commit moves JoypadApple initialization to `initialize_joypad()`
which is called explicitly after the Input singleton is available.

This is consistent with other platform joypad initialization.
2025-01-31 12:57:52 +01:00

5.4 KiB