سؤال

I am using an event tap in a Mac app to detect key presses and mouse movements. For the next step I would like to distinguish between an internal keyboard/trackpad and an external keyboard/mouse/trackpad. Does any one have any idea how to do this?

هل كانت مفيدة؟

المحلول

You need to use the DDHidLib instead. If you want an example, check out this Open Source application:

https://github.com/FeeJai/MultiLayout

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top