[Mac] Implemented joystick device detection