mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
Updated the love key to SDL keycode mapping to be a static array instead of a std::map.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user