Updated the love key to SDL keycode mapping to be a static array instead of a std::map.

This commit is contained in:
Alex Szpakowski
2014-09-27 03:17:08 -03:00
parent b70f72acb3
commit e2354acc65
3 changed files with 10 additions and 14 deletions
+3 -6
View File
@@ -26,10 +26,7 @@
#include "common/EnumMap.h"
// SDL
#include <SDL.h>
// STL
#include <map>
#include <SDL_keyboard.h>
namespace love
{
@@ -60,8 +57,8 @@ private:
// The real implementation is in love::event::sdl::Event::Convert.
bool key_repeat;
static std::map<Key, SDL_Keycode> createKeyMap();
static std::map<Key, SDL_Keycode> keys;
static const SDL_Keycode *createKeyMap();
static const SDL_Keycode *keymap;
}; // Keyboard