mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- fix RedNukem input.
This commit is contained in:
parent
412f3a0b32
commit
0168b9ddf2
1 changed files with 9 additions and 4 deletions
|
@ -750,10 +750,15 @@ static int32_t osdcmd_name(osdfuncparm_t const * const parm)
|
|||
|
||||
static int32_t osdcmd_button(osdfuncparm_t const * const parm)
|
||||
{
|
||||
char const *p = parm->name+9; // skip "gamefunc_"
|
||||
// if (g_player[myconnectindex].ps->gm == MODE_GAME) // only trigger these if in game
|
||||
//CONTROL_OSDInput[CONFIG_FunctionNameToNum(p)] = 1; // FIXME
|
||||
return OSDCMD_OK;
|
||||
static char const s_gamefunc_[] = "gamefunc_";
|
||||
int constexpr strlen_gamefunc_ = ARRAY_SIZE(s_gamefunc_) - 1;
|
||||
|
||||
char const* p = parm->name + strlen_gamefunc_;
|
||||
|
||||
// if (g_player[myconnectindex].ps->gm == MODE_GAME) // only trigger these if in game
|
||||
CONTROL_ButtonFlags[CONFIG_FunctionNameToNum(p)] = 1; // FIXME
|
||||
|
||||
return OSDCMD_OK;
|
||||
}
|
||||
|
||||
const keydef_t ConsoleKeys[]=
|
||||
|
|
Loading…
Reference in a new issue