Using accelerometer & gyroscope information from a controller

Godot Version

4.3

Question

I’m trying to make a game where the core functionality is based around using the gyroscopes & accelerometers in controllers to change some numbers around for my game. at the moment i have a pair of switch controllers, an 8bitdo, and other controllers to test with, that i would love to use. but it seems like android & IOS devices are the only options for godot at the moment to read accelerometer data. am i wrong in this? barking up the wrong tree? posting in the wrong section of the forum? please, send help!

I’m not afraid to get crunchy with it and learn bits of programming outside (or inside) of gdscript if need be, i just need to know where to start and searching for answers is sending me down the halls of insanity

godot v 4.3, archlinux/windows 10

There is an open issue here proposing adding support for this, there is ongoing work for adding support in Linux, but it seems like it is no easy task to add in general.

In that issue I found this GDExtension which claims it works for Windows and Linux (I haven’t tested it since I have a Mac).

Yes! i just found that today too when i went back to looking for answers. i’ll post back if it’s fully what i’m looking for or not. haven’t had a chance to get into it yet though. thank you for your help!