Moved Cocoa joystick state to library struct.