From 8c6e4eb38af829e076344aada34daae13944f7d0 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Mon, 10 Sep 2012 00:27:54 +0200 Subject: [PATCH] Add support for norwegian keyboard layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit via "in_kbd norwegian". It's the '|' and '§' chars (124, 167) Fixes #33 --- neo/sys/events.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neo/sys/events.cpp b/neo/sys/events.cpp index eadc6118..c75abb61 100644 --- a/neo/sys/events.cpp +++ b/neo/sys/events.cpp @@ -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 ); @@ -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; // § } }