/GyroInputTest

DualShock 4 gyroscope extension for Unity Input System

Primary LanguageC#

GyroInputTest

GIF

GyroInputTest is an extension for Unity Input System that adds gyroscope input support for DualShock 4 gamepads.

Known issues

  • The constants for gyroscopic data from DualShock 4 are undocumented and unknown. I put plausible values just by guessing. It seems to work but may contain small errors.
  • I implemented gyroscope drift compensation for the pitch/bank angles. It does nothing about the yaw angle; It may drift constantly.

Acknowledgements

The initial idea is based on SG4YK's implementation.