From 7d2f1d74a48f39a2e86c525890099b1b463d3b40 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 15 Feb 2015 16:11:50 -0400 Subject: [PATCH] Renamed the Key and Scancode constants representing the spacebar from " " to "space" (see issue #976.) --HG-- branch : minor --- src/modules/keyboard/Keyboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/keyboard/Keyboard.cpp b/src/modules/keyboard/Keyboard.cpp index 5b9941176..12c73e3f3 100644 --- a/src/modules/keyboard/Keyboard.cpp +++ b/src/modules/keyboard/Keyboard.cpp @@ -55,7 +55,7 @@ StringMap::Entry Keyboard::keyEntries[] = {"escape", Keyboard::KEY_ESCAPE}, {"backspace", Keyboard::KEY_BACKSPACE}, {"tab", Keyboard::KEY_TAB}, - {" ", Keyboard::KEY_SPACE}, + {"space", Keyboard::KEY_SPACE}, {"!", Keyboard::KEY_EXCLAIM}, {"\"", Keyboard::KEY_QUOTEDBL}, {"#", Keyboard::KEY_HASH}, @@ -302,7 +302,7 @@ StringMap::Entry Keyboard::scan {"escape", SCANCODE_ESCAPE}, {"backspace", SCANCODE_BACKSPACE}, {"tab", SCANCODE_TAB}, - {" ", SCANCODE_SPACE}, + {"space", SCANCODE_SPACE}, {"-", SCANCODE_MINUS}, {"=", SCANCODE_EQUALS},