Skip to content

Commit 937081e

Browse files
committed
winebus.sys: Enable hidraw for Virpil Constellation ALPHA-R.
Fixes: ValveSoftware/Proton#6839
1 parent e3cc6b6 commit 937081e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

dlls/winebus.sys/unixlib.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ static BOOL is_vkb_controller(WORD vid, WORD pid)
117117
return FALSE;
118118
}
119119

120+
static BOOL is_virpil_controller(WORD vid, WORD pid)
121+
{
122+
if (vid != 0x3344) return FALSE;
123+
if (pid == 0x412f) return TRUE; /* Virpil Constellation ALPHA-R */
124+
return FALSE;
125+
}
126+
120127
BOOL is_hidraw_enabled(WORD vid, WORD pid)
121128
{
122129
const char *enabled = getenv("PROTON_ENABLE_HIDRAW");
@@ -128,6 +135,7 @@ BOOL is_hidraw_enabled(WORD vid, WORD pid)
128135
if (is_simucube_wheel(vid, pid)) return TRUE;
129136
if (is_fanatec_pedals(vid, pid)) return TRUE;
130137
if (is_vkb_controller(vid, pid)) return TRUE;
138+
if (is_virpil_controller(vid, pid)) return TRUE;
131139

132140
sprintf(needle, "0x%04x/0x%04x", vid, pid);
133141
if (enabled) return strcasestr(enabled, needle) != NULL;

0 commit comments

Comments
 (0)