mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Give split players default controls while sellecting profile #
This commit is contained in:
parent
c8c07aacc8
commit
13c74efa41
1 changed files with 4 additions and 0 deletions
|
|
@ -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 :)
|
// Because let's face it, when you test mods, you're often lazy to grab your controller for menuing :)
|
||||||
if (!i && !num)
|
if (!i && !num)
|
||||||
setup_player[num].ponedevice = cv_usejoystick[num].value;
|
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);
|
CV_SetValue(&cv_usejoystick[num], i);
|
||||||
//CONS_Printf("Device for %d set to %d\n", num, i);
|
//CONS_Printf("Device for %d set to %d\n", num, i);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue