views:

23

answers:

1

Hi,

I was wondering if it is possible in Cocoa/Carbon to detect whether a key combination (e. g. Ctrl + Z) comes from a Wacom button or the keyboard itself.

Thanks best xonic

+1  A: 

I can only assume a Wacom tablet's driver is faking keyboard events that are bound to specific buttons. If this is the case, I don't think you'll be able to distinguish them as -pointingDeviceID, -tabletID, and friends are only valid for mouse events (which a keyboard event - faked or real - is not).

Joshua Nozzi
Yes, you're right. The Wacom tablet fakes a keyboard event so it's really just that. But your answer implies that it's also not possible to distinguish keyEvents of a USB keyboard from those of the built-in keyboard on my macbook. I find that hard to believe, at least the system should know where a key stroke comes from, right?Thanks!
xon1c