I’m trying to detect analog position. Basically if the user presses the right analog stick up , right, or slanted i want to detect it. The code below works, it detects if the analog stick is in the upper right corner. But i was wondering if theirs a more precise way of doing this?
//if the x and y joystick axis is greater than .1 .detects if analog stick is in the right corner
if (InputController.RightBumper == true && InputController.JoystickInput.x >= .1f && InputController.JoystickInput.y >= .1f)
{
JoystickState = EJoyStickDirection.UPPERRIGHT;
print(InputController.JoystickInput.x + " , " + InputController.JoystickInput.y);
}