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

Multiple controllers #11

Closed
cimocw opened this issue Sep 19, 2018 · 2 comments
Closed

Multiple controllers #11

cimocw opened this issue Sep 19, 2018 · 2 comments

Comments

@cimocw
Copy link

cimocw commented Sep 19, 2018

is there a way to have more than one pair of joycons working at the same time? I tried but all I got was the first pair registering the inputs on both instances of the application.

@sam0x17
Copy link
Member

sam0x17 commented Sep 20, 2018

With the code the way it is, there is no way to do this, but you might be able to extend my code to handle this. https://github.com/sam0x17/XJoy/blob/master/XJoy/XJoy.cpp#L164 returns a list of all devices that are found that match the manufacturer and product specified. My code just takes the first one, but you could modify things so that it instantiates the first and second one. This is beyond the scope of what I plan to do though.

@sam0x17 sam0x17 closed this as completed Sep 20, 2018
@cimocw
Copy link
Author

cimocw commented Sep 20, 2018

I understand and appreciate your help. I don't code but will keep an eye on the project in case someone else does it. For the time being I think I can manage borrowing an extra pro controller to play multiplayer games. Keep up the good work!

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

2 participants