aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-08-23 07:07:34 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-08-23 07:07:34 +0000
commit2d9f98b592c41a0b79eb6d15122fc00f4f91c836 (patch)
treec4427981330fde1cb3192b6a0eacfc23ffc47f62 /Demos/Device
parentd0ac8e46f958e81f78876740202ca489569f5689 (diff)
downloadlufa-2d9f98b592c41a0b79eb6d15122fc00f4f91c836.tar.gz
lufa-2d9f98b592c41a0b79eb6d15122fc00f4f91c836.tar.bz2
lufa-2d9f98b592c41a0b79eb6d15122fc00f4f91c836.zip
Add multiple axis support to the HID joystick report in the HID_DESCRIPTOR_JOYSTICK() macro.
Diffstat (limited to 'Demos/Device')
-rw-r--r--Demos/Device/ClassDriver/Joystick/Descriptors.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Demos/Device/ClassDriver/Joystick/Descriptors.c b/Demos/Device/ClassDriver/Joystick/Descriptors.c
index a9abb5d81..cc7399288 100644
--- a/Demos/Device/ClassDriver/Joystick/Descriptors.c
+++ b/Demos/Device/ClassDriver/Joystick/Descriptors.c
@@ -46,13 +46,14 @@
const USB_Descriptor_HIDReport_Datatype_t PROGMEM JoystickReport[] =
{
/* Use the HID class driver's standard Joystick report.
+ * Number of Axis: 2 (X/Y)
* Min X/Y Axis values: -100
* Max X/Y Axis values: 100
* Min physical X/Y Axis values (used to determine resolution): -1
* Max physical X/Y Axis values (used to determine resolution): 1
* Buttons: 2
*/
- HID_DESCRIPTOR_JOYSTICK(-100, 100, -1, 1, 2)
+ HID_DESCRIPTOR_JOYSTICK(2, -100, 100, -1, 1, 2)
};
/** Device descriptor structure. This descriptor, located in FLASH memory, describes the overall