Map joystick input into keyboard and mouse events on Mac OS X