The inSender parameter of IOHIDValueCallback (input_callback) is already a HID device.

This change fixes the detection of joystick events on Mac OS X 10.6. On 10.9 the old code also worked, presumably because IOHIDQueueGetDevice returned the input parameter as result in case it wasn't an IOHIDQueueRef (on 10.6 it returned NULL)