From: Drew Fisher Date: Fri, 11 Jun 2010 06:36:15 +0000 (-0700) Subject: Tiny change to make axes neutral by default. X-Git-Url: http://git.zarvox.org/shortlog/%7B%7B%20url_for%28%27main.signup_page%27%29%20%7D%7D?a=commitdiff_plain;h=72ae11d98053f28013797b3a5e5cebc9c562cd4a;p=usbsnes.git Tiny change to make axes neutral by default. --- diff --git a/main.c b/main.c index 9e8ccb8..b08d094 100644 --- 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) diff --git a/usbconfig.h b/usbconfig.h index 9dfeae0..aa8ddea 100644 --- a/usbconfig.h +++ b/usbconfig.h @@ -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