Fixed keyboard handling on windows 95 family.

This commit is contained in:
crs
2004-03-28 14:07:58 +00:00
parent e50146119f
commit 97046541b9
8 changed files with 519 additions and 209 deletions

View File

@@ -64,7 +64,6 @@ public:
//@}
// IKeyState overrides
virtual void setKeyDown(KeyButton button, bool down);
virtual void sendKeyEvent(void* target,
bool press, bool isAutoRepeat,
KeyID key, KeyModifierMask mask,
@@ -88,6 +87,14 @@ private:
// convert a language ID to a code page
UINT getCodePageFromLangID(LANGID langid) const;
// map a virtual key to a button. this tries to deal with the
// broken win32 API as best it can.
KeyButton mapVirtKeyToButton(UINT virtualKey,
KeyButton& extended) const;
// same as above and discard extended
KeyButton mapVirtKeyToButton(UINT virtualKey) const;
// map character \c c given keyboard layout \c hkl to the keystrokes
// to generate it.
KeyButton mapCharacter(Keystrokes& keys,