keijiro / GyroInputTest

DualShock 4 gyroscope extension for Unity Input System

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

DualShock 4 gyroscope extension for Unity Input System


Languages

Language:C# 100.0%