Is there a 开发者_开发知识库cocoa / carbon equivalent to the VkKeyScan and ToUnicode functions present on windows for translating between virtual scan codes and a unicode string? I would also like to
void WriteChar(char c) { INPUT input = {0}; input.type = INPUT_KEYBOARD; input.ki.wVk= VkKeyScanEx(c, GetKeyboardLayout(0) ) ;
I am using Windows XP pro SP3. Standard english keyboard. I live in the USA; never touched the keyboard settings. Stock install. So, when I press check the scancodes my program is returning they are a