Transform joystick input into keyboard and mouse events (OSX)