New event "EVENT_SETDEFAULTS".

Use this event to change the value of userdefs when initializing cfg settings with defaults.

Patch from Fox.

git-svn-id: https://svn.eduke32.com/eduke32@6554 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-12-12 05:13:46 +00:00
parent 9765526948
commit ea36d5289a
3 changed files with 4 additions and 0 deletions

View file

@ -323,6 +323,8 @@ void CONFIG_SetDefaults(void)
ud.config.JoystickAnalogueAxes[i] = CONFIG_AnalogNameToNum(joystickanalogdefaults[i]);
CONTROL_MapAnalogAxis(i, ud.config.JoystickAnalogueAxes[i], controldevice_joystick);
}
VM_OnEvent(EVENT_SETDEFAULTS, g_player[myconnectindex].ps->i, myconnectindex);
}

View file

@ -134,6 +134,7 @@ enum GameEvent_t {
EVENT_RECOGSOUND,
EVENT_UPDATESCREENAREA,
EVENT_DISPLAYBORDER,
EVENT_SETDEFAULTS,
#ifdef LUNATIC
EVENT_ANIMATEALLSPRITES,
#endif

View file

@ -730,6 +730,7 @@ const char *EventNames[MAXEVENTS] =
"EVENT_RECOGSOUND",
"EVENT_UPDATESCREENAREA",
"EVENT_DISPLAYBORDER",
"EVENT_SETDEFAULTS",
#ifdef LUNATIC
"EVENT_ANIMATEALLSPRITES",
#endif