Closed guillaumeparent closed 2 years ago
The sketch file above appears to work correctly on Windows 10. It may be a MacOS issue.
For example:
First Controller:
Fourth Controller:
The second and third look the same.
I know Linux machines need an adjustment to work correctly if more than one controller is defined (see https://github.com/MHeironimus/ArduinoJoystickLibrary/wiki/FAQ#linux-support for more details). Maybe there is something equivalent for the Mac.
It may be a MacOS issue
That's what I think too know I have confirmation my sketch works under Windows.
I know Linux machines need an adjustment to work correctly if more than one controller is defined
I saw that on your blog but I did not pay attention to it since my scrip works for 2 controller. I'll give it a try tho.
I'll try to compile my sketch under Windows and see if my full script works. Then i'll try to solve the problem under MacOS.
Thank you a lot for the help.
Ok, I found the problem. It was indeed the issue mentioned here. I tested the method on a Raspberry Pi (on which I experienced the same 2 controller limitation) and it worked. Now I can see 4 controllers.
Thank you for the help !
Description of Issue
As stated in the title, I am unable to create a sketch able to set more than 2 controllers. The discussion started in Mathiew's blog.
To summarize, I manage to create sketches dealing with 2 controllers, but as soon as I try to deal with more than 2 controllers only the 2 first ones are properly defined.
I attach in the following a minimal reproducible example attempting to define 4 controllers with 1 button each. As one can see on the attache picture, only the 2 first (0x10 and 0x11) controllers are properly detected. The 2 last ones (0x12 and 0x14) are not. The axis are recognized as buttons only.
Technical Details
Sketch File that Reproduces Issue
Wiring Details
Any pin wiring details that may be relevant.
Additional context
Add any other context about the problem here.