I need something like SendInput in the Windows API.
I see this method, I donβt know, anyway, to convert the Unicode character to virtual Key code.
CGEventRef CGEventCreateKeyboardEvent (
CGEventSourceRef source,
CGKeyCode virtualKey,
bool keyDown
);
source
share