Give split players default controls while sellecting profile #

This commit is contained in:
SinnamonLat 2022-05-21 14:57:16 +02:00
parent c8c07aacc8
commit 13c74efa41

View file

@ -2301,6 +2301,10 @@ static boolean M_HandlePressStart(setup_player_t *p, UINT8 num)
// Because let's face it, when you test mods, you're often lazy to grab your controller for menuing :)
if (!i && !num)
setup_player[num].ponedevice = cv_usejoystick[num].value;
else if (num)
// For any player past player 1, set controls to default profile controls, otherwise it's generally awful to do any menuing...
memcpy(&gamecontrol[num], gamecontroldefault, sizeof(gamecontroldefault));
CV_SetValue(&cv_usejoystick[num], i);
//CONS_Printf("Device for %d set to %d\n", num, i);