Browse Source

Renamed the Key and Scancode constants representing the spacebar from " " to "space" (see issue #976.)

--HG--
branch : minor
Alex Szpakowski 10 years ago
parent
commit
7d2f1d74a4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/modules/keyboard/Keyboard.cpp

+ 2 - 2
src/modules/keyboard/Keyboard.cpp

@@ -55,7 +55,7 @@ StringMap<Keyboard::Key, Keyboard::KEY_MAX_ENUM>::Entry Keyboard::keyEntries[] =
 	{"escape", Keyboard::KEY_ESCAPE},
 	{"escape", Keyboard::KEY_ESCAPE},
 	{"backspace", Keyboard::KEY_BACKSPACE},
 	{"backspace", Keyboard::KEY_BACKSPACE},
 	{"tab", Keyboard::KEY_TAB},
 	{"tab", Keyboard::KEY_TAB},
-	{" ", Keyboard::KEY_SPACE},
+	{"space", Keyboard::KEY_SPACE},
 	{"!", Keyboard::KEY_EXCLAIM},
 	{"!", Keyboard::KEY_EXCLAIM},
 	{"\"", Keyboard::KEY_QUOTEDBL},
 	{"\"", Keyboard::KEY_QUOTEDBL},
 	{"#", Keyboard::KEY_HASH},
 	{"#", Keyboard::KEY_HASH},
@@ -302,7 +302,7 @@ StringMap<Keyboard::Scancode, Keyboard::SCANCODE_MAX_ENUM>::Entry Keyboard::scan
 	{"escape", SCANCODE_ESCAPE},
 	{"escape", SCANCODE_ESCAPE},
 	{"backspace", SCANCODE_BACKSPACE},
 	{"backspace", SCANCODE_BACKSPACE},
 	{"tab", SCANCODE_TAB},
 	{"tab", SCANCODE_TAB},
-	{" ", SCANCODE_SPACE},
+	{"space", SCANCODE_SPACE},
 
 
 	{"-", SCANCODE_MINUS},
 	{"-", SCANCODE_MINUS},
 	{"=", SCANCODE_EQUALS},
 	{"=", SCANCODE_EQUALS},