From 13c74efa41d1786835136b785d1e2c816a2b70db Mon Sep 17 00:00:00 2001 From: SinnamonLat Date: Sat, 21 May 2022 14:57:16 +0200 Subject: [PATCH] Give split players default controls while sellecting profile # --- src/k_menufunc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/k_menufunc.c b/src/k_menufunc.c index a6ac43e71..792286bdf 100644 --- a/src/k_menufunc.c +++ b/src/k_menufunc.c @@ -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);