Commit Graph

4 Commits

Author SHA1 Message Date
Robert Bragg 864d782c24 Attach native thread to JVM before calling android_main 2022-05-28 02:54:00 +01:00
Robert Bragg c492fead0f App: Expose internal/ext/obb paths + sdk_version
This exposes the state from ANativeActivity and GameActivity in a
portable (Activity agnostic) way.
2022-05-28 02:53:59 +01:00
Robert Bragg 164957ec65 game-activity: rework input API
This leaves the InputBuffer abstraction as an implementation detail
and just exposes an API like this for processing input:

  app.input_events(|event| {
      // handle event
  });

The main consideration here was to have an API that could also be
supported via NativeActivity to keep open the possibility of a standard
Android 'glue' API.
2022-05-20 02:46:01 +01:00
Robert Bragg 6fb438de82 Initial GameActivity glue implementation
This is based on the 2022.0.0 agdk-libraries release
2022-05-08 22:40:25 +01:00