aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/ClassDriver/Joystick
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-08-23 07:07:34 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-08-23 07:07:34 +0000
commite1ed5e7952461348ed6fc8ffcad1843174de4a86 (patch)
treec4427981330fde1cb3192b6a0eacfc23ffc47f62 /Demos/Device/ClassDriver/Joystick
parentd4e308572cd882cfba75a9b8ab367eab80e3005c (diff)
Add multiple axis support to the HID joystick report in the HID_DESCRIPTOR_JOYSTICK() macro.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1912 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Device/ClassDriver/Joystick')
-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 a9abb5d8..cc739928 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