reset our gamepad colour in some cases

to account for mappalettes properly
This commit is contained in:
Alug committed 2025-09-12 22:27:14 +02:00
1 parent 9f27a41906
commit 8788ad9aa0
3 files changed
+12 -1

No files matched your search

+8 -1
View File
@@ -220,11 +220,12 @@ static void D_GamePadMenuScrollTicker(void)
}
#undef SCROLLDELAY
static UINT16 curcolor[MAXSPLITSCREENPLAYERS] = {0};
static void D_DeviceLEDTick(void)
{
UINT8 i;
static UINT16 color[MAXSPLITSCREENPLAYERS] = {0};
static UINT16 curcolor[MAXSPLITSCREENPLAYERS] = {0};
if (numcontrollers == 0)
{
@@ -246,6 +247,11 @@ static void D_DeviceLEDTick(void)
}
}
void D_ResetDeviceLED(void)
{
memset(curcolor, 0, sizeof(curcolor));
}
//
// D_ProcessEvents
// Send all the events of the given timestamp down the responder chain
@@ -1081,6 +1087,7 @@ void D_StartTitle(void)
D_ClearState();
M_ClearMenus(true);
F_StartTitleScreen();
D_ResetDeviceLED();
}
//
+2
View File
@@ -87,6 +87,8 @@ void D_ProcessEvents(void);
const char *D_Home(void);
void D_ResetDeviceLED(void);
//
// BASE LEVEL
//
+2
View File
@@ -3039,6 +3039,8 @@ boolean P_SetupLevel(boolean fromnetsave, boolean reloadinggamestate)
if (!reloadinggamestate)
K_LoadExtraVFX();
D_ResetDeviceLED();
return true;
}