Initial implementation of controller color config (#2411)

This commit is contained in:
kalaposfos13 2025-02-14 11:30:49 +01:00 committed by GitHub
parent ad43ba5ec7
commit 1cc9e0d37f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 73 additions and 10 deletions

View file

@ -129,7 +129,8 @@ void SDLInputEngine::Init() {
};
}
SDL_free(gamepads);
SetLightBarRGB(0, 0, 255);
int* rgb = Config::GetControllerCustomColor();
SetLightBarRGB(rgb[0], rgb[1], rgb[2]);
}
void SDLInputEngine::SetLightBarRGB(u8 r, u8 g, u8 b) {