mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-16 03:08:01 +00:00
[skip ci] Fix hidapi gamepad ignoring
This commit is contained in:
parent
85fc76b089
commit
b0823349bb
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ static void SDL_RequestWebHIDDevice(Uint16 vendor, Uint16 product, int device_in
|
|||
while (true) {
|
||||
try {
|
||||
let devices = await navigator["hid"]["requestDevice"]({ "filters": [ { "vendorId": $0, "productId": $1, } ]});
|
||||
if (devices) {
|
||||
if (devices["length"]) {
|
||||
dynCall("vi", $2, [$3]);
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue