YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

Add YYRunnerInterface support for all platforms (android, iOS,...) #4947

Open Glim888 opened 8 months ago

Glim888 commented 8 months ago

Is your feature request related to a problem?

Right now I use the YYRunnerInterface in a C++ extension, but sadly its not supported for android, iOS... just for windows.

Describe the solution you'd like

Implement the YYRunnerInterface for all platforms, or at least for the important ones.

Also please create an interface description + tutorial how to use it. Right now Its pretty hard to guess what is what.

Describe alternatives you've considered

No response

Additional context

No response

shichen85 commented 3 months ago

Also would love this feature!

shichen85 commented 3 months ago

As a side note, I believe the runtime's android/runner/ProjectFiles/src/main/java/com/yoyogames/runner/RunnerJNILib.java is used in a lot of extensions, such as https://github.com/YoYoGames/GMEXT-GooglePlayServices/blob/ae54f84da3ea0963ef987ee564a6761125b4f26c/source/GooglePlayServices_gml/extensions/googleplayservices/AndroidSource/Java/YYGooglePlayServices.java#L5.

I am guessing it serves similar purpose as YYRunnerInterface but for Java. In the case that we can't fully support YYRunnerInterface for Android, a tutorial on how to make use of RunnerJNILib.java would still be welcomed.

As for iOS, I believe YYRunnerInterface is already supported: https://github.com/YoYoGames/GMEXT-Bluetooth/blob/e3b25e5a5b3cd1efd8bb9e148167e570cc0c9175/source/Bluetooth_gml/extensions/Bluetooth/iOSSource/Bluetooth.mm#L9. However, the lack of documentation on YYRunnerInterface does make it very difficult to guess how to use it.