fyhuang / enjoy2

Transform joystick input into keyboard and mouse events (OSX)
MIT License
363 stars 55 forks source link

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

Closed jmaebe closed 10 years ago

jmaebe commented 10 years ago

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)