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.