Gaming: patch sdl to ignore keychron things
This commit is contained in:
parent
8b86b1ccc0
commit
eb5ebb056c
2 changed files with 24 additions and 1 deletions
|
|
@ -1,6 +1,16 @@
|
|||
{...}: {
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./programs
|
||||
./services
|
||||
];
|
||||
system.replaceDependencies.replacements = [
|
||||
{
|
||||
oldDependency = pkgs.sdl3;
|
||||
newDependency = pkgs.sdl3.overrideAttrs {
|
||||
patches = [
|
||||
./sdl-keychron-blacklist.patch
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
13
roles/gaming/sdl-keychron-blacklist.patch
Normal file
13
roles/gaming/sdl-keychron-blacklist.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
|
||||
index 5ce36de86..37bf5ca85 100644
|
||||
--- a/src/joystick/SDL_joystick.c
|
||||
+++ b/src/joystick/SDL_joystick.c
|
||||
@@ -281,6 +281,8 @@ static Uint32 initial_blacklist_devices[] = {
|
||||
MAKE_VIDPID(0x3297, 0x1969), // Moonlander MK1 Keyboard
|
||||
MAKE_VIDPID(0x3434, 0x0211), // Keychron K1 Pro System Control
|
||||
MAKE_VIDPID(0x04f2, 0xa13c), // HP Deluxe Webcam KQ246AA
|
||||
+ MAKE_VIDPID(0x3434, 0x0353), // Keychron V5 System Control
|
||||
+ MAKE_VIDPID(0x3434, 0xd030), // Keychron Link
|
||||
};
|
||||
static SDL_vidpid_list blacklist_devices = {
|
||||
SDL_HINT_JOYSTICK_BLACKLIST_DEVICES, 0, 0, NULL,
|
||||
Loading…
Add table
Add a link
Reference in a new issue