Add save and restore of each pin used in reading joystick (AVR).
Allow output pin to be JS_VIRTUAL_AXIS if the axis is connected to Vcc instead of an output pin from the MCU. Fix joystick report id Fix broken v-usb hid joystick interface. Make it more resilient to unusual settings (none multiple of eight button count, 0 buttons or 0 axes) Correct adc reading for multiple axes. Piecewise range conversion for uncentered raw value range. Input, output and ground pin configuration per axis. Documentation fixes
This commit is contained in:
parent
ee43b338ea
commit
b030c45705
8 changed files with 223 additions and 38 deletions
|
@ -29,7 +29,8 @@ enum hid_report_ids {
|
|||
REPORT_ID_MOUSE,
|
||||
REPORT_ID_SYSTEM,
|
||||
REPORT_ID_CONSUMER,
|
||||
REPORT_ID_NKRO
|
||||
REPORT_ID_NKRO,
|
||||
REPORT_ID_JOYSTICK
|
||||
};
|
||||
|
||||
/* Mouse buttons */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue