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

[Feature request] Add support for multiple Controllers #8

Open
Managor opened this issue Jun 28, 2023 · 3 comments
Open

[Feature request] Add support for multiple Controllers #8

Managor opened this issue Jun 28, 2023 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Managor
Copy link

Managor commented Jun 28, 2023

Would be nice if the program detected several controllers and used all the available tracks.

@Roboron3042 Roboron3042 added enhancement New feature or request help wanted Extra attention is needed labels Jun 28, 2023
@Roboron3042
Copy link
Owner

It would be fantastic, but not so many have access to more than one controller. I myself don't, so I can not implement this myself!

@Managor
Copy link
Author

Managor commented Jun 28, 2023

I have literally no experience with this sort of stuff, but I'll take a look if I have the time.

@Roboron3042
Copy link
Owner

Currently device is accessed using libusb_open_device_with_vid_pid, but that only works for one device. For more, one would need to call libusb_get_device_list and find the controllers (I don't know the details).

Then you would need to refactor various parts of the code so everywhere an action is done on the controller, it is done on each one of the controllers in the previous list (open, claim, close, etc...).

On playSong you need to adjust the for loop, so it will keep going after channel 1 if there is more than one controller, and assign a new controller each 2 channels.

I don't know if sync would be a issue. Hopefully not!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants