(Apple/OSX) Refactor hid_device_input_callback