Last active
January 29, 2020 22:23
-
-
Save chris-hatton/c1f7b3a344f89a3e78c9346b345ef25e to your computer and use it in GitHub Desktop.
Fragment to get pressed D-Pad button from SteamVR controller in Unity
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh, also, if you wanted to make it so it captures the press once the user releases the button, instead of currently where it sends a constant stream if the button is held down, you can update your if() statement for
device.GetPress()
instad to bedevice.GetPressUp()
Sorry, I'll stop spamming your wall now, thanks again! (I made sure to credit your gist in my source)