As in the question, really. I want to be able to detect if a gamepad has it's analogue input pushed as far as it can go in any direction.
Given x and y axis values in the range [-1, 1] (-1 being left and down respectively), how can I account for all of the angles between horizontal and vertical, as this means that I can't simply check if abs(axis) == 1
.
As I'm unaware of how it might affect it, the engine I'm using is UE4, so any answer could take that into account.