Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
light2peter opened this issue Jan 21, 2023 · 3 comments
Open

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

light2peter opened this issue Jan 21, 2023 · 3 comments

Comments

@light2peter
Copy link

light2peter commented Jan 21, 2023

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.

@tomayac
Copy link
Owner

tomayac commented Feb 6, 2023

@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.

@nondebug
Copy link

nondebug commented Feb 6, 2023

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?

@tomayac
Copy link
Owner

tomayac commented Feb 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants