tomayac/joy-con-webhid

JoyCon(R) sometimes has a productName of "Wireless Gamepad"

light2peter opened this issue · 3 comments

Windows 10 / Chrome 109.0.5414.75, I see the JoyCon as "Wireless Gamepad".

When this happens, src/index.js creates it as a GeneralController:

if (device.productName === 'Joy-Con (R)') {

In this case, the GeneralController doesn't get properly visualized in demo/index.js. It shows up as conflicting events for the left controller, plus the right joycon orientation doesn't appear.

@nondebug, do you have an idea why this might happen? Sounds like some sort of race condition. I have personally never run into this on my Mac, but the reporter is on Windows.

I haven't seen this before but a race condition sounds likely.

"Wireless Gamepad" isn't a string that comes from Chrome but it matches the product name used by Switch Pro Controller. Did you happen to have a Pro controller connected?

@light2peter, do you have an answer to #16 (comment)?