开发者

device from NSEvent

开发者 https://www.devze.com 2023-03-24 12:28 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号