MHeironimus / ArduinoJoystickLibrary

An Arduino library that adds one or more joysticks to the list of HID devices an Arduino Leonardo or Arduino Micro can support.
GNU Lesser General Public License v3.0
2.1k stars 409 forks source link

Naming the controller #189

Closed jaygrovr closed 3 years ago

jaygrovr commented 3 years ago

Describe your feature request It would be great if there was a way to put in a custom name for the controller, when it is detected by windows. Currently, it just shows "Arduino Leonardo". When using more than one arduino, its hard to tell which one is plugged in and working. Having a name for it would help avoid that confusion. I see that there is an ID you have to change for each device you are plugging in.

Additional context Add any other context or screenshots about the feature request here.

VkTheProgrammer17 commented 3 years ago

watch this video -https://www.youtube.com/watch?v=hoCOq9Ngp44 from 20 minutes

jaygrovr commented 3 years ago

This is excellent, but my hardware folder didnt exist, as far as I can tell.  What about the AVR board folder inside?  I dont have that either? I have multiple boards installed on my IDE.. Any thoughts? jason On Sunday, January 24, 2021, 12:48:11 AM PST, VkTheProgrammer17 notifications@github.com wrote:

watch this video -https://www.youtube.com/watch?v=hoCOq9Ngp44 from 20 minutes

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

jaygrovr commented 3 years ago

Ok i saw I had to download the files.  I still cant get the new board to show up in the IDE.  Second question, how can I make two entries for two different HID joysticks (i have two leonardos). Thanks Jason On Sunday, January 24, 2021, 12:48:11 AM PST, VkTheProgrammer17 notifications@github.com wrote:

watch this video -https://www.youtube.com/watch?v=hoCOq9Ngp44 from 20 minutes

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

jaygrovr commented 3 years ago

Nevermind on the location, i found it.  Messy computer.  Still want to know how to create a second.  Do I add another entry to the boards.txt or do I add another boards.txt file with a different name and different contents? Thanks Jason On Sunday, January 24, 2021, 12:48:11 AM PST, VkTheProgrammer17 notifications@github.com wrote:

watch this video -https://www.youtube.com/watch?v=hoCOq9Ngp44 from 20 minutes

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

VkTheProgrammer17 commented 3 years ago

i think its the latter. i have not downloaded the files myself so i'm just guessing

VkTheProgrammer17 commented 3 years ago

the person from the video(which was very informative) said he was going to upload a video about making multiple ids

jaygrovr commented 3 years ago

Ok. yea, now I cant get one joystick working.. Do all the types exist for all the axes? For instance if i set type to JOYSTICK_TYPE_JOYSTICK , do all the analog sticks become available for use?  The 11 axes?  Or are they different for each stick type? I keep on getting an error in windows on the USB device.  It uploads fine.  I have a 40ms delay at the end of theloop, but it never shows up.  Even setting the board back to leonardo, it still doesnt show up. Jason On Sunday, January 24, 2021, 01:47:15 PM PST, VkTheProgrammer17 notifications@github.com wrote:

the person from the video(which was very informative) said he was going to upload a video about making multiple ids

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

VkTheProgrammer17 commented 3 years ago

if you type only JOYSTICK_TYPE_JOYSTICK, it thinks that there are 32 buttons, 2 hat switches and all axes. maybe you can watch the whole video to understand the library better. i am also doing the same. btw, you can check out my repository-https://github.com/VkTheProgrammer17/gaming-steering-wheel . i also wanted to remind to you that i do not know how to code in arduino and i am trying to learn it

jaygrovr commented 3 years ago

Yes i got it all to work fine.. I didnt know the limitations of the Rx Ry and Rz axes.. and that you have to enable all three or none. On Sunday, January 24, 2021, 03:20:45 PM PST, VkTheProgrammer17 notifications@github.com wrote:

if you type only JOYSTICK_TYPE_JOYSTICK, it thinks that there are 32 buttons, 2 hat switches and all axes. maybe you can watch the whole video to understand the library better. i am also doing the same. btw, you can check out my repository-https://github.com/VkTheProgrammer17/gaming-steering-wheel

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

VkTheProgrammer17 commented 3 years ago

you're welcome

On Mon, Jan 25, 2021 at 4:57 AM Jason Goldenberg notifications@github.com wrote:

Yes i got it all to work fine.. I didnt know the limitations of the Rx Ry and Rz axes.. and that you have to enable all three or none. On Sunday, January 24, 2021, 03:20:45 PM PST, VkTheProgrammer17 < notifications@github.com> wrote:

if you type only JOYSTICK_TYPE_JOYSTICK, it thinks that there are 32 buttons, 2 hat switches and all axes. maybe you can watch the whole video to understand the library better. i am also doing the same. btw, you can check out my repository- https://github.com/VkTheProgrammer17/gaming-steering-wheel

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MHeironimus/ArduinoJoystickLibrary/issues/189#issuecomment-766459173, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARVJPNIHYR7GEMZXZIFKEJLS3SUE5ANCNFSM4WLDWSXQ .