Fixed JGE key binding in SDL config
This commit is contained in:
@@ -33,18 +33,16 @@ const string Options::optionNames[] = {
|
||||
"transitions",
|
||||
"bgStyle",
|
||||
"interruptSeconds",
|
||||
#if defined(QT_CONFIG)
|
||||
#if defined(SDL_CONFIG)
|
||||
"keybindings_sdl",
|
||||
#elif defined(QT_CONFIG)
|
||||
"keybindings_qt",
|
||||
#else
|
||||
#if defined(WIN32)
|
||||
#elif defined(WIN32)
|
||||
"keybindings_win",
|
||||
#else
|
||||
#if defined(LINUX)
|
||||
#elif defined(LINUX)
|
||||
"keybindings_x",
|
||||
#else
|
||||
"keybindings_psp",
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
"aidecks",
|
||||
"interruptMySpells",
|
||||
|
||||
@@ -12,7 +12,7 @@ using std::map;
|
||||
static map<const LocalKeySym, KeyRep> fattable;
|
||||
static map<const JButton, KeyRep> slimtable;
|
||||
|
||||
#if defined(LINUX) || defined (IOS) || defined (ANDROID)
|
||||
#if defined(LINUX) || defined (IOS) || defined (ANDROID) || defined (SDL_CONFIG) || defined (QT_CONFIG)
|
||||
const KeyRep& translateKey(LocalKeySym key)
|
||||
{
|
||||
{
|
||||
@@ -37,9 +37,7 @@ const KeyRep& translateKey(LocalKeySym key)
|
||||
fattable[key] = k;
|
||||
return fattable[key];
|
||||
}
|
||||
#else
|
||||
#ifdef WIN32
|
||||
|
||||
#elif defined(WIN32)
|
||||
const KeyRep& translateKey(LocalKeySym key)
|
||||
{
|
||||
{
|
||||
@@ -135,7 +133,6 @@ const KeyRep& translateKey(LocalKeySym key)
|
||||
return k;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
const KeyRep& translateKey(JButton key) {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user