From 731671c40165e31990ab50875da715054181db8b Mon Sep 17 00:00:00 2001 From: ny00123 Date: Sat, 26 Oct 2019 16:35:08 +0000 Subject: [PATCH] Make the secondary backslash key of the standard 102-keys PC keyboard layout, also known as a "less than" key, usable. This is the key generally sitting in-between the left shift and Z keys, for the 102-keys QWERTY layout. git-svn-id: https://svn.eduke32.com/eduke32@8265 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/sdlkeytrans.cpp | 4 ++-- source/mact/include/keyboard.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/build/src/sdlkeytrans.cpp b/source/build/src/sdlkeytrans.cpp index 19fa8ca50..9cdd18ce7 100644 --- a/source/build/src/sdlkeytrans.cpp +++ b/source/build/src/sdlkeytrans.cpp @@ -45,7 +45,7 @@ static int32_t buildkeytranslationtable(void) MAP(SDLK_9, 0xa); MAP(SDLK_COLON, 0x27); MAP(SDLK_SEMICOLON, 0x27); - MAP(SDLK_LESS, 0x33); + MAP(SDLK_LESS, 0x56); MAP(SDLK_EQUALS, 0xd); MAP(SDLK_GREATER, 0x34); MAP(SDLK_QUESTION, 0x35); @@ -153,7 +153,7 @@ static int32_t buildkeytranslationtable(void) MAP(SDL_SCANCODE_ESCAPE, 0x1); MAP(SDL_SCANCODE_SPACE, 0x39); MAP(SDL_SCANCODE_COMMA, 0x33); - MAP(SDL_SCANCODE_NONUSBACKSLASH, 0x33); + MAP(SDL_SCANCODE_NONUSBACKSLASH, 0x56); MAP(SDL_SCANCODE_MINUS, 0xc); MAP(SDL_SCANCODE_PERIOD, 0x34); MAP(SDL_SCANCODE_SLASH, 0x35); diff --git a/source/mact/include/keyboard.h b/source/mact/include/keyboard.h index 150c0cd44..ca27cfb4e 100644 --- a/source/mact/include/keyboard.h +++ b/source/mact/include/keyboard.h @@ -52,10 +52,10 @@ static struct { "Space", 0x39 }, { "CapLck", 0x3a }, { "F1", 0x3b }, { "F2", 0x3c }, { "F3", 0x3d }, { "F4", 0x3e }, { "F5", 0x3f }, { "F6", 0x40 }, { "F7", 0x41 }, { "F8", 0x42 }, { "F9", 0x43 }, { "F10", 0x44 }, { "NumLck", 0x45 }, { "ScrLck", 0x46 }, { "Kpad7", 0x47 }, { "Kpad8", 0x48 }, { "Kpad9", 0x49 }, { "Kpad-", 0x4a }, { "Kpad4", 0x4b }, { "Kpad5", 0x4c }, { "Kpad6", 0x4d }, - { "Kpad+", 0x4e }, { "Kpad1", 0x4f }, { "Kpad2", 0x50 }, { "Kpad3", 0x51 }, { "Kpad0", 0x52 }, { "Kpad.", 0x53 }, { "F11", 0x57 }, - { "F12", 0x58 }, { "KpdEnt", 0x9c }, { "RCtrl", 0x9d }, { "Kpad/", 0xb5 }, { "RAlt", 0xb8 }, { "PrtScn", 0xb7 }, { "Pause", 0xc5 }, - { "Home", 0xc7 }, { "Up", 0xc8 }, { "PgUp", 0xc9 }, { "Left", 0xcb }, { "Right", 0xcd }, { "End", 0xcf }, { "Down", 0xd0 }, - { "PgDn", 0xd1 }, { "Insert", 0xd2 }, { "Delete", 0xd3 }, + { "Kpad+", 0x4e }, { "Kpad1", 0x4f }, { "Kpad2", 0x50 }, { "Kpad3", 0x51 }, { "Kpad0", 0x52 }, { "Kpad.", 0x53 }, { "LessThan", 0x56 }, + { "F11", 0x57 }, { "F12", 0x58 }, { "KpdEnt", 0x9c }, { "RCtrl", 0x9d }, { "Kpad/", 0xb5 }, { "RAlt", 0xb8 }, { "PrtScn", 0xb7 }, + { "Pause", 0xc5 }, { "Home", 0xc7 }, { "Up", 0xc8 }, { "PgUp", 0xc9 }, { "Left", 0xcb }, { "Right", 0xcd }, { "End", 0xcf }, + { "Down", 0xd0 }, { "PgDn", 0xd1 }, { "Insert", 0xd2 }, { "Delete", 0xd3 }, }; #define MAXKEYBOARDSCAN 256