mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2024-11-24 18:12:19 -05:00
Update README.md
This commit is contained in:
parent
53de06d974
commit
dfc6cb9ce1
@ -106,7 +106,7 @@ Another possibility is change VID and PID to something that already has HID_QUIR
|
|||||||
Here you can see what quirks are activated to different VID/PIDs:
|
Here you can see what quirks are activated to different VID/PIDs:
|
||||||
https://github.com/torvalds/linux/blob/master/drivers/hid/usbhid/hid-quirks.c
|
https://github.com/torvalds/linux/blob/master/drivers/hid/usbhid/hid-quirks.c
|
||||||
|
|
||||||
Edit VID/PID from `C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards.txt` (after editgin boards.txt, you have to close and reopen Arduino IDE). Example USB_VENDOR_ID_MOJO 0x8282, USB_DEVICE_ID_RETRO_ADAPTER 0x3201:
|
Edit VID/PID from `C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards.txt` (after editing boards.txt, you have to close and reopen Arduino IDE). Example USB_VENDOR_ID_MOJO 0x8282, USB_DEVICE_ID_RETRO_ADAPTER 0x3201:
|
||||||
```
|
```
|
||||||
leonardo.build.vid=0x8282
|
leonardo.build.vid=0x8282
|
||||||
leonardo.build.pid=0x3201
|
leonardo.build.pid=0x3201
|
||||||
@ -128,7 +128,7 @@ There is simple tutorial in [Tutorial](https://github.com/mcgurk/Arduino-USB-HID
|
|||||||
## Polishing
|
## Polishing
|
||||||
If you want that less than 16 buttons are shown in joystick-settings, edit Joystick.cpp/Joystick2.cpp/Joystick3.cpp "USAGE_MAXIMUM"-line (0x10 = 16). You may to have create new file after that, because all libraries are not recompiled every time and I don't know how to force full recompile.
|
If you want that less than 16 buttons are shown in joystick-settings, edit Joystick.cpp/Joystick2.cpp/Joystick3.cpp "USAGE_MAXIMUM"-line (0x10 = 16). You may to have create new file after that, because all libraries are not recompiled every time and I don't know how to force full recompile.
|
||||||
|
|
||||||
Adapter shows as "Arduino Leonardo", but if you want it to show some other name, edit `C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards.txt`. You can even add sub menu to tools-menu by adding these lines (after editgin boards.txt, you have to close and reopen Arduino IDE):
|
Adapter shows as "Arduino Leonardo", but if you want it to show some other name, edit `C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards.txt`. You can even add sub menu to tools-menu by adding these lines (after editing boards.txt, you have to close and reopen Arduino IDE):
|
||||||
|
|
||||||
```
|
```
|
||||||
menu.usb_name=USB Product Name
|
menu.usb_name=USB Product Name
|
||||||
|
Loading…
Reference in New Issue
Block a user