I have a simple use case, I want to detect a Leap Motion gesture then register a key event (only left or right arrows). I need the event to be on fired on the OS level or somehow target keynote specifically. Is Cinder the right tool for this? I have an application set up with Leap Motion working but simulating the keys is giving me some trouble.
Cinder can do anything C++ can do, so it can definitely do this. Normally I would say Cinder could even be a little overkill, but since you’re interfacing with the leap, I think it’s a good fit.
On OSX, the native function you’re going to want to be looking for is CGEventPost. Here is a basic example of pressing, then releasing the ‘s’ key. You’ll need to make sure the window is focused on Keynote, but Cinder should be happy enough to run in the background.