Skip to main content
1 of 2
user486134
  • 425
  • 1
  • 6
  • 14

Mac OS - How send unicode character to active application?

I need something like SendInput in Windows API.

I see this method, I don't know there is anyway to convert unicode character to virtual Key code.

CGEventRef CGEventCreateKeyboardEvent ( CGEventSourceRef source, CGKeyCode virtualKey, bool keyDown ); 
user486134
  • 425
  • 1
  • 6
  • 14