mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +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]);
|
ud.config.JoystickAnalogueAxes[i] = CONFIG_AnalogNameToNum(joystickanalogdefaults[i]);
|
||||||
CONTROL_MapAnalogAxis(i, ud.config.JoystickAnalogueAxes[i], controldevice_joystick);
|
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_RECOGSOUND,
|
||||||
EVENT_UPDATESCREENAREA,
|
EVENT_UPDATESCREENAREA,
|
||||||
EVENT_DISPLAYBORDER,
|
EVENT_DISPLAYBORDER,
|
||||||
|
EVENT_SETDEFAULTS,
|
||||||
#ifdef LUNATIC
|
#ifdef LUNATIC
|
||||||
EVENT_ANIMATEALLSPRITES,
|
EVENT_ANIMATEALLSPRITES,
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -730,6 +730,7 @@ const char *EventNames[MAXEVENTS] =
|
||||||
"EVENT_RECOGSOUND",
|
"EVENT_RECOGSOUND",
|
||||||
"EVENT_UPDATESCREENAREA",
|
"EVENT_UPDATESCREENAREA",
|
||||||
"EVENT_DISPLAYBORDER",
|
"EVENT_DISPLAYBORDER",
|
||||||
|
"EVENT_SETDEFAULTS",
|
||||||
#ifdef LUNATIC
|
#ifdef LUNATIC
|
||||||
"EVENT_ANIMATEALLSPRITES",
|
"EVENT_ANIMATEALLSPRITES",
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue