From 2fdfb3e998cce71c090d926601f906cb561c7dee Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 6 Aug 2018 20:30:09 -0700 Subject: [PATCH] Fix a few incorrectly mapped keys. Fixes #28 --- app/streaming/input.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/streaming/input.cpp b/app/streaming/input.cpp index f82a3238..b3b24ea2 100644 --- a/app/streaming/input.cpp +++ b/app/streaming/input.cpp @@ -158,6 +158,7 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event) case SDL_SCANCODE_CLEAR: keyCode = 0x0C; break; + case SDL_SCANCODE_KP_ENTER: // FIXME: Is this correct? case SDL_SCANCODE_RETURN: keyCode = 0x0D; break; @@ -235,7 +236,7 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event) case SDL_SCANCODE_KP_MINUS: keyCode = 0x6D; break; - case SDL_SCANCODE_KP_DECIMAL: + case SDL_SCANCODE_KP_PERIOD: keyCode = 0x6E; break; case SDL_SCANCODE_KP_DIVIDE: @@ -289,6 +290,9 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event) case SDL_SCANCODE_SEMICOLON: keyCode = 0xBA; break; + case SDL_SCANCODE_EQUALS: + keyCode = 0xBB; + break; case SDL_SCANCODE_COMMA: keyCode = 0xBC; break;