Mystfit / ESP32-BLE-CompositeHID

Bluetooth LE Gamepad + Mouse + Keyboard library for the ESP32
Other
58 stars 2 forks source link

[Feature request] Compatibility with gyroscope. #18

Open shivamkantprasad opened 1 week ago

shivamkantprasad commented 1 week ago

I wanna make a controller with motion control like in PS controllers. I want to have an option to send gyroscope data to pc like some controllers send. It would be greatly appreciated if you could add this feature.

lemmingDev commented 4 days ago

Would be trivial to simply manually map gyroscope data to left analog x and y etc...

Mystfit commented 4 days ago

I agree with what @lemmingDev suggessted, mapping the gyro to existing axis inputs would be the easiest way to accomplish this as then it would be compatible with all games that use analog joysticks. I've previously done something similar by mapping a hall effect magnetic sensor to triggers.

The only controllers I can think of that pass dedicated gyro information along to a PC are the Dualsense controllers. I think they're compatible with Steam natively, but you'd still have to use Steam Input to map the gyro to standard controller axes.

Can you provide some examples of gyroscopic game controllers that send data to the PC and any games in question I can look at as an example?