IOHIDEventSystemCreate on iOS6 failed
IOHIDEventSystemCreate always return NULL on iOS6 (work fine on iOS5). Anyone know why? Example on iPhoneDevWiki #include <IOKit/hid/IOHIDEventSystem.h> #include <stdio.h> void handle_event (void* target, void* refcon, IOHIDServiceRef service, IOHIDEventRef event) { // handle the events here. printf("Received event of type %2d from service %p.\n", IOHIDEventGetType(event), service); } int main () { // Create and open an event system. IOHIDEventSystemRef system = IOHIDEventSystemCreate(NULL); IOHIDEventSystemOpen(system, handle_event, NULL, NULL, NULL); printf("HID Event system should now be