Cool!
That Fusion library looks interesting (and is MIT), I'll have to take a look.

Have you tried getting the touch pad working?

Thanks! I tried for a bit to do the sensor fusion myself, but all the resources were like PhD papers with complex math. Finally found the Fusion library, and it was very simple to integrate. MIT license C code, just a few files. Really great to work with, only took a few hours to get hooked up. The HID code was just the same plugin I used for the Space Navigator (HIDAPI) with some small edits to the report parsing. So that was easy too.

The touch pad is recognized by default as a mouse cursor. It also has 2 finger scrolling and clicking with the trigger. So you can essentially control your computer without doing anything special. My idea was to make an alternative control scheme for the Godot editor, so you can place and rotate objects with the Dual Shock gamepad. Orientation is no problem, I was thinking of mapping the position to the rotation (with a hotkey) so you can place objects as well. This would be like the Space Mouse plugin, but more advanced.

cybereality changed the title to Dual Shock Gyro Aim in Godot - Godot Gyro Axis .

Yep, I've got touch pad (as two finger touch input) and IMU for DS4 and DS5 in my input library. 🙂

The steam controller is another good one for IMU. Valve never supported it properly without Steam running, but HID to the rescue. 🙂