Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Version used: 1.1.0
Devices/Android versions reproduced on: S20, P20 Pro / SDK 30, 31, 32
When Paddleboat_init is called after `android_poll_source::process` is called at least once, the ControllerStatusCallback that is set will not get called.
*Note: It does get called occassionally only once at boot if there was already a controller attached to the device before the app was launched.
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
Attached the AGDK game controller samples project from github with a preprocessor define that triggers the behaviour.
Repro steps:
1. Open game_controller nativeactivity Android Studio project
2. Set INIT_PADDLEBOAT_AFTER_SOURCE_POLL in native_engine.cpp to 0
3. Launch the app on a phone
4. Attach and detach a controller multiple times
5. Note that the controller appears and disappears correctly
6. Close the app
7. Set INIT_PADDLEBOAT_AFTER_SOURCE_POLL in native_engine.cpp to 1
8. Launch the app on a phone
9. Attach a controller - Note it doesn't appear
10. Detach the controller - Note nothing happens (by putting a breakpoint in in the status callback for example)