ghost was unaware of extra *<>* key on german keyboards on windows
This commit is contained in:
Jens Ole Wund 2004-11-07 16:30:19 +00:00
parent c6c86b8df0
commit 23e8b98228
5 changed files with 13 additions and 1 deletions

@ -232,6 +232,7 @@ typedef enum {
GHOST_kKeyLeftAlt,
GHOST_kKeyRightAlt,
GHOST_kKeyCommand, // APPLE only!
GHOST_kKeyGrLess , // German PC only!
GHOST_kKeyCapsLock,
GHOST_kKeyNumLock,

@ -193,6 +193,10 @@ void GHOST_EventPrinter::getKeyString(GHOST_TKey key, STR_String& str) const
// APPLE only!
str = "Command";
break;
case GHOST_kKeyGrLess:
// PC german!
str = "GrLess";
break;
case GHOST_kKeyCapsLock:
str = "CapsLock";
break;

@ -103,6 +103,9 @@
#ifndef VK_CLOSE_BRACKET
#define VK_CLOSE_BRACKET 0xDD
#endif // VK_CLOSE_BRACKET
#ifndef VK_GR_LESS
#define VK_GR_LESS 0xE2
#endif // VK_GR_LESS
GHOST_SystemWin32::GHOST_SystemWin32()
@ -407,6 +410,7 @@ GHOST_TKey GHOST_SystemWin32::convertKey(WPARAM wParam, LPARAM lParam) const
case VK_BACK_SLASH: key = GHOST_kKeyBackslash; break;
case VK_CLOSE_BRACKET: key = GHOST_kKeyRightBracket; break;
case VK_QUOTE: key = GHOST_kKeyQuote; break;
case VK_GR_LESS: key = GHOST_kKeyGrLess; break;
// Process these keys separately because we need to distinguish right from left modifier keys
case VK_SHIFT:

@ -187,6 +187,7 @@
#define UNKNOWNKEY 171
#define COMMANDKEY 172
#define GRLESSKEY 173
/* used as fake leftmouse event, special handled in interface.c */
#define BUT_ACTIVATE 200

@ -268,6 +268,8 @@ static int convert_key(GHOST_TKey key) {
case GHOST_kKeyNumpadAsterisk: return PADASTERKEY;
case GHOST_kKeyNumpadSlash: return PADSLASHKEY;
case GHOST_kKeyGrLess: return GRLESSKEY;
case GHOST_kKeyUnknown: return UNKNOWNKEY;
default: