mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
SW: Fix keyboard input
git-svn-id: https://svn.eduke32.com/eduke32@8303 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/duke3d/src/config.cpp # source/duke3d/src/menus.cpp # source/mact/include/control.h # source/mact/src/control.cpp # source/sw/src/config.cpp # source/sw/src/menus.cpp
This commit is contained in:
parent
383ecda2b2
commit
a51e91d4e9
2 changed files with 5 additions and 10 deletions
|
@ -698,7 +698,7 @@ static MenuEntry_t *MEL_DISPLAYSETUP_GL[] = {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static char const *MenuKeyNone = " -";
|
static char const MenuKeyNone[] = " -";
|
||||||
static char const *MEOSN_Keys[NUMKEYS];
|
static char const *MEOSN_Keys[NUMKEYS];
|
||||||
|
|
||||||
static MenuCustom2Col_t MEO_KEYBOARDSETUPFUNCS_TEMPLATE = { 0, &MF_Minifont, NUMKEYS, 54<<16, 0 };
|
static MenuCustom2Col_t MEO_KEYBOARDSETUPFUNCS_TEMPLATE = { 0, &MF_Minifont, NUMKEYS, 54<<16, 0 };
|
||||||
|
@ -1565,8 +1565,9 @@ void Menu_Init(void)
|
||||||
}
|
}
|
||||||
MEOS_Gamefuncs.numOptions = k;
|
MEOS_Gamefuncs.numOptions = k;
|
||||||
|
|
||||||
for (i = 0; i < NUMKEYS; ++i)
|
for (i = 1; i < NUMKEYS-1; ++i)
|
||||||
MEOSN_Keys[i] = KB_ScanCodeToString(i);
|
MEOSN_Keys[i] = KB_ScanCodeToString(i);
|
||||||
|
MEOSN_Keys[0] = MenuKeyNone;
|
||||||
MEOSN_Keys[NUMKEYS-1] = MenuKeyNone;
|
MEOSN_Keys[NUMKEYS-1] = MenuKeyNone;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -683,12 +683,6 @@ SWBOOL MNU_KeySetupCustom(UserCall call, MenuItem *item)
|
||||||
{
|
{
|
||||||
inputState.ClearKeyStatus(inputState.GetLastScanCode());
|
inputState.ClearKeyStatus(inputState.GetLastScanCode());
|
||||||
|
|
||||||
//KeyboardKeys[currentkey][currentcol] = KB_GetLastScanCode();
|
|
||||||
#if 0 // [JM] Re-do this shit !CHECKME!
|
|
||||||
CONTROL_MapKey(currentkey,
|
|
||||||
KeyboardKeys[currentkey][0],
|
|
||||||
KeyboardKeys[currentkey][1]);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
currentmode = 0;
|
currentmode = 0;
|
||||||
}
|
}
|
||||||
|
@ -811,12 +805,12 @@ SWBOOL MNU_KeySetupCustom(UserCall call, MenuItem *item)
|
||||||
MNU_DrawSmallString(OPT_XS, j, ds, (i==currentkey) ? 0 : 12, 16);
|
MNU_DrawSmallString(OPT_XS, j, ds, (i==currentkey) ? 0 : 12, 16);
|
||||||
|
|
||||||
p = keyGetName(KeyboardKeys[i][0]);
|
p = keyGetName(KeyboardKeys[i][0]);
|
||||||
if (!p || KeyboardKeys[i][0]==0xff) p = " -";
|
if (!p || !KeyboardKeys[i][0] || KeyboardKeys[i][0]==0xff) p = " -";
|
||||||
MNU_DrawSmallString(OPT_XSIDE, j, p, (i==currentkey) ? -5 : 12,
|
MNU_DrawSmallString(OPT_XSIDE, j, p, (i==currentkey) ? -5 : 12,
|
||||||
(i==currentkey && currentcol==0) ? 14 : 16);
|
(i==currentkey && currentcol==0) ? 14 : 16);
|
||||||
|
|
||||||
p = keyGetName(KeyboardKeys[i][1]);
|
p = keyGetName(KeyboardKeys[i][1]);
|
||||||
if (!p || KeyboardKeys[i][1]==0xff) p = " -";
|
if (!p || !KeyboardKeys[i][1] || KeyboardKeys[i][1]==0xff) p = " -";
|
||||||
MNU_DrawSmallString(OPT_XSIDE + 4*14, j, p, (i==currentkey) ? -5 : 12,
|
MNU_DrawSmallString(OPT_XSIDE + 4*14, j, p, (i==currentkey) ? -5 : 12,
|
||||||
(i==currentkey && currentcol==1) ? 14 : 16);
|
(i==currentkey && currentcol==1) ? 14 : 16);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue