开发者

OSX Leopard HID getting simple keyboard input example?

开发者 https://www.devze.com 2023-01-02 08:30 出处:网络
I am about to implement simple keyboard and mouse input on osx for my engine. I want to abstract the implementation开发者_StackOverflow中文版 in more generic c++ classes like Keyboard and Mouse plus a

I am about to implement simple keyboard and mouse input on osx for my engine. I want to abstract the implementation开发者_StackOverflow中文版 in more generic c++ classes like Keyboard and Mouse plus appropriate Listeners for portability. Anyways, I came across the Leopard HID Api (http://developer.apple.com/mac/library/technotes/tn2007/tn2187.html#TNTAG9000-SAMPLE_CODE_)which seems to be the right way to go for the osx implementation of these classes. Anyways, the examples of the HID are very complex and I can't really wrap my head around it as fast as I wished I could, so I was wondering if anybody has used it allready to get some basic mouse and keyboard input, or knows about some good examples/resources online. Or Maybe even a totally different way to go?

thanks

0

精彩评论

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