I schedule a HIDManager
on the current runloop, which is the runloop for the main
function.
When I add the following line
CFRunLoopRun();
All HID events will be captured and the output will be shown on the screen, which is compatible with the Runloop Model
But if I add a
for(;;);
at the end of the main loop, from my understanding, I can also keep this runloop exist and the thread will never die. Why I cannot receive any HID events and nothing got printed on the screen right now?