mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2024-11-24 01:52:17 -05:00
Update README.md
This commit is contained in:
parent
ea5c8a5d11
commit
c94bf0824b
@ -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`. Example:
|
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:
|
||||||
```
|
```
|
||||||
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:
|
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):
|
||||||
|
|
||||||
```
|
```
|
||||||
menu.usb_name=USB Product Name
|
menu.usb_name=USB Product Name
|
||||||
|
Loading…
Reference in New Issue
Block a user