[Mac] Fixed Joystick Hat calculations