diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-01-30 14:40:24 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-01-30 14:40:24 +0000 |
commit | 30f6d2bfd82995e0fa346b3b4eb33861f6a0fde3 (patch) | |
tree | 905d172f844a21f8fcc0ef301cc2f416b1fce286 /Demos/Device/LowLevel/Joystick | |
parent | e6dc95163094692d11715711d5c1aaa19841dd77 (diff) | |
download | lufa-30f6d2bfd82995e0fa346b3b4eb33861f6a0fde3.tar.gz lufa-30f6d2bfd82995e0fa346b3b4eb33861f6a0fde3.tar.bz2 lufa-30f6d2bfd82995e0fa346b3b4eb33861f6a0fde3.zip |
Oops - forgot to add in LOGICAL MINIMUM and LOGICAL MAXIMUM report items into the standard library Joystick HID report descriptor macro. Add in support for joystick resolution reporting via PHYSICAL_MINIMUM and PHYSICAL_MAXIMUM items.
Diffstat (limited to 'Demos/Device/LowLevel/Joystick')
-rw-r--r-- | Demos/Device/LowLevel/Joystick/Descriptors.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Demos/Device/LowLevel/Joystick/Descriptors.c b/Demos/Device/LowLevel/Joystick/Descriptors.c index 4cfdddd27..5db6b0d28 100644 --- a/Demos/Device/LowLevel/Joystick/Descriptors.c +++ b/Demos/Device/LowLevel/Joystick/Descriptors.c @@ -54,8 +54,10 @@ USB_Descriptor_HIDReport_Datatype_t PROGMEM JoystickReport[] = HID_RI_USAGE(8, 0x31), /* Usage Y */ HID_RI_LOGICAL_MINIMUM(8, -100), HID_RI_LOGICAL_MAXIMUM(8, 100), - HID_RI_REPORT_SIZE(8, 0x08), + HID_RI_PHYSICAL_MINIMUM(8, -1), + HID_RI_PHYSICAL_MAXIMUM(8, 1), HID_RI_REPORT_COUNT(8, 0x02), + HID_RI_REPORT_SIZE(8, 0x08), HID_RI_INPUT(8, HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_ABSOLUTE), HID_RI_END_COLLECTION(0), HID_RI_USAGE_PAGE(8, 0x09), /* Button */ |