开发者

How to access the IR (Infrared receiver) with Cocoa?

开发者 https://www.devze.com 2023-01-31 18:54 出处:网络
I need to access the raw data of the IR with cocoa, but not only开发者_如何学运维 the received from the Apple Remote. I saw this https://github.com/martinkahr/apple_remote_control but It\'s only for t

I need to access the raw data of the IR with cocoa, but not only开发者_如何学运维 the received from the Apple Remote. I saw this https://github.com/martinkahr/apple_remote_control but It's only for the Apple Remote.


Just from a quick browse over the source you linked to, it appears that what you're looking for is the I/O Kit. Specifically the HID (human input device aspects of it).

http://developer.apple.com/library/mac/#documentation/DeviceDrivers/Conceptual/IOKitFundamentals/Introduction/Introduction.html

This seems to be the bridging layer between Mac OS applications the the hardware itself.

0

精彩评论

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