Fix of getControls function.

If an axis is used for a joystick it’ll crash no more.