Xbox (Or any other generic controller) device recognition #545
IcarusTwine
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all, So I had this idea where I could attach an Xbox controller to my device and have it do custom functions etc
So far I have got it to detect all buttons other than Dpad and right Analog stick.
By hooking to UnityEngine.Input and calling the GetKey method I can track if a button is down or up using JoystickButton0 etc
Hooking Left Axis is fine thanks to Unity's in built defaults of "Horizontal" and "Vertical" using Input.GetAxis()
However I came to a stop as the right alalog stick and dpad are all considered Axis and are not defined by default
Anyone come across this or suggestions on what to look into as this would open up a world of ideas.
Beta Was this translation helpful? Give feedback.
All reactions