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