games-samples icon indicating copy to clipboard operation
games-samples copied to clipboard

No Motion Data

Open fdaf11 opened this issue 3 years ago • 1 comments

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?

fdaf11 avatar May 29 '22 11:05 fdaf11

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.

natetrost avatar Jun 06 '22 14:06 natetrost