Added KeySym <-> Unicode mappings. Changed code to use those

mappings to better support Unicode key events.
This commit is contained in:
crs
2003-04-24 20:11:38 +00:00
parent 7791b167bf
commit cf7ab3459d
4 changed files with 889 additions and 17 deletions

View File

@@ -720,10 +720,17 @@ CXWindowsPrimaryScreen::mapKey(XKeyEvent* event) const
// MISCELLANY
return static_cast<KeyID>(keysym - 0xff00 + 0xef00);
default:
// FIXME -- support unicode characters
default: {
// lookup character in table
UInt32 key = CXWindowsUtil::mapKeySymToUCS4(keysym);
if (key != 0x0000ffff) {
return static_cast<KeyID>(key);
}
// unknown character
return kKeyNone;
}
}
}
ButtonID