I'd like to read trackpad multitouch gesture and coordinate data into my C++ program. Where can I find some introductory tutorials on doing this?

有帮助吗?

解决方案 2

The way to go is indeed objective-c++, which is just a mix of c++ and objective-c. It's very powerful because you can start using all the Apple frameworks in your C++ projects.

You should learn a bit of objective-c, rename some .m files to .mm (or .cpp files to .mm) and read through the apple documentation on touch events. ( https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSResponder_Class/Reference/Reference.html#//apple_ref/occ/instm/NSResponder/touchesBeganWithEvent: )

Or if objective-c scares you, check out this multitouch trackpad addon for OpenFrameworks https://github.com/jens-a-e/ofxMultiTouchPad

其他提示

You should take a look at Cocoa Event Handling Guide.
To use Cocoa frameworks in your C++ program use Objective-C++.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top