I have an application that uses a barcode scanner. I want to be able to determine who pressed a key: the keyboard or the barcode scanner. I tried all the methods from the N开发者_开发知识库SEvent, but I didn't find anything.
Thanks
You cant get device information using NSEvent.You shoud take a look at DDHidLib. It will help you to work with usb devices.
精彩评论