How to know a device's name from its device ID in OS X?
Posted
by yangumi
on Stack Overflow
See other posts from Stack Overflow
or by yangumi
Published on 2009-11-06T05:06:30Z
Indexed on
2010/03/31
19:23 UTC
Read the original article
Hit count: 364
Hi all,
I'm writing a program in OS X that receives click events from a mouse and a touchpad. When the user clicks at somewhere, the OS sends the device ID, which is just an int, and the position of the cursor to my callback function. I want to know if the click event comes from mouse or touchpad. So, how can I know the device's name from its device ID?
Thank you!
(I'm sorry for my poor English.)
© Stack Overflow or respective owner