]> git.zarvox.org Git - usbsnes.git/commitdiff
Tiny change to make axes neutral by default.
authorDrew Fisher <drew.m.fisher@gmail.com>
Fri, 11 Jun 2010 06:36:15 +0000 (23:36 -0700)
committerDrew Fisher <drew.m.fisher@gmail.com>
Fri, 11 Jun 2010 06:36:15 +0000 (23:36 -0700)
main.c
usbconfig.h

diff --git a/main.c b/main.c
index 9e8ccb8a580b82c09532d158ef62c78f82a56a93..b08d0945562082d40c926958801ed6f90c17184d 100644 (file)
--- a/main.c
+++ b/main.c
@@ -19,8 +19,8 @@ PROGMEM char usbHidReportDescriptor[] = {
 //     0x85, 0x01,                     //              REPORT_ID (1)
        0x09, 0x30,                     //              USAGE (X)
        0x09, 0x31,                     //              USAGE (Y)
-       0x15, 0x00,                     //              LOGICAL_MINIMUM (0)
-       0x26, 0xff, 0x00,       //                      LOGICAL_MAXIMUM (255)
+       0x15, 0x81,                     //              LOGICAL_MINIMUM (-127)
+       0x25, 0x7f,                     //              LOGICAL_MAXIMUM (127)
        0x75, 0x08,                     //              REPORT_SIZE (8)
        0x95, 0x02,                     //              REPORT_COUNT (2)
        0x81, 0x02,                     //              INPUT (Data,Var,Abs)
index 9dfeae0d7c0cbf0abd58dad7b94e43e3f40277ba..aa8ddea39e0b4738ca713ff10f4602349516c6e7 100644 (file)
@@ -278,7 +278,7 @@ section at the end of this file).
  * HID class is 3, no subclass and protocol required (but may be useful!)
  * CDC class is 2, use subclass 2 and protocol 1 for ACM
  */
-#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    43
+#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    42
 /* Define this to the length of the HID report descriptor, if you implement
  * an HID device. Otherwise don't define it or define it to 0.
  * If you use this define, you must add a PROGMEM character array named