games-samples
games-samples copied to clipboard
No Motion Data
I Tried gamecontroller.GameActivity Project, the buttons is ok, but i can't get motion and accelerometer data, which display none. Can I figure out how to debug it?
Accelerometer/motion data has requirements:
- A compatible controller (currently PS4 and PS5 for motion data)
- Android 12 or later
- Device is running a kernel version that include the updated driver. Not all Android 12 devices have the relevant kernel upgrades. Recent Pixel phones, for example, include the required driver.
The short answer is if you are using a PS4 or PS5 controller on Android 12 or later, you should get motion data if your device has the appropriate kernel driver. If not, it won't be displayed.