mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
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:
parent
9765526948
commit
ea36d5289a
3 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -134,6 +134,7 @@ enum GameEvent_t {
|
|||
EVENT_RECOGSOUND,
|
||||
EVENT_UPDATESCREENAREA,
|
||||
EVENT_DISPLAYBORDER,
|
||||
EVENT_SETDEFAULTS,
|
||||
#ifdef LUNATIC
|
||||
EVENT_ANIMATEALLSPRITES,
|
||||
#endif
|
||||
|
|
|
@ -730,6 +730,7 @@ const char *EventNames[MAXEVENTS] =
|
|||
"EVENT_RECOGSOUND",
|
||||
"EVENT_UPDATESCREENAREA",
|
||||
"EVENT_DISPLAYBORDER",
|
||||
"EVENT_SETDEFAULTS",
|
||||
#ifdef LUNATIC
|
||||
"EVENT_ANIMATEALLSPRITES",
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue