Permalink
Browse files

Add support for norwegian keyboard layout

via "in_kbd norwegian". It's the '|' and '§' chars (124, 167)

Fixes #33
  • Loading branch information...
1 parent 6d9a43c commit 8c6e4eb38af829e076344aada34daae13944f7d0 @DanielGibson DanielGibson committed Sep 9, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 neo/sys/events.cpp
View
@@ -59,7 +59,7 @@ If you have questions concerning this license or the applicable additional terms
#endif
const char *kbdNames[] = {
- "english", "french", "german", "italian", "spanish", "turkish", NULL
+ "english", "french", "german", "italian", "spanish", "turkish", "norwegian", NULL
};
idCVar in_kbd("in_kbd", "english", CVAR_SYSTEM | CVAR_ARCHIVE | CVAR_NOCHEAT, "keyboard layout", kbdNames, idCmdSystem::ArgCompletion_String<kbdNames> );
@@ -340,6 +340,9 @@ unsigned char Sys_GetConsoleKey(bool shifted) {
} else if (!lang.Icmp("turkish")) {
keys[0] = '"';
keys[1] = 233; // é
+ } else if (!lang.Icmp("norwegian")) {
+ keys[0] = 124; // |
+ keys[1] = 167; // §
}
}

0 comments on commit 8c6e4eb

Please sign in to comment.