I recently started experimenting with the SDK for S Pen Remote, which can be found here
The scenario is that I want to retrieve data from the gyroscope (deltaX, deltaY) provided by the SDK in my app, and here’s where the issue arises. When I first launch my app and then pull out the stylus from the phone, the gyroscope event is only sent when the button on the stylus is pressed. Sometimes the stylus also bugs out and cannot connect to the phone at all after being removed - this only happens when using the app with this SDK.
However, if I first pull out the stylus, let it connect to the phone, and then launch my app, everything works perfectly, the gyroscope data is sent without needing to press the button.
Why is this happening, and does anyone know of a workaround for this? Unfortunately, the standard Android SDK does not support retrieving gyroscope data, especially when the stylus is not touching the screen, so I’m left with this SDK.
I tested this on the S23 Ultra.