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?
Asked
Active
Viewed 174 times
0
-
See http://stackoverflow.com/questions/219623/device-information-from-nsevent-cgevent. – lucas clemente Nov 15 '11 at 17:18
1 Answers
1
You need to use the DDHidLib instead. If you want an example, check out this Open Source application:

FeeJai
- 1,175
- 1
- 8
- 13