Hello currently I have an Xbox One controller setup to use in my project. The problem im facing is that the input axis only returns the angles in 45 degree increments. What I want is the return value of where the analog stick is facing from 0 - 360 degrees either precisely or in steps of 10s 5s 1s etc. Currently this is the blueprint logic setup so far.
Here is the function in use. AttackForward and AttackRight are the axis that I mapped to my controller joystick. I am using it to change the direction that my character is facing, but you should be able to adapt it to your code.
From what I understand, the forward and right axis are the X and Y input axis.
You can imagine the position of the stick as a 2D vector, with the X and Y values representing how far left and up you need to go to reach that position. This function returns the orientation of such vector. To do the opposite, you would also need to know the magnitude, aka how far the stick is from the center going in a straight line. You can’t get the components from the angle only because there are endless combinations of components that can result in the same angle, each one implying a different magnitude.