diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-05-12 08:28:02 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-05-12 08:28:02 +0000 |
commit | 958a1b4e2bffdc548b34edd322d30cec5d5feacd (patch) | |
tree | 26ae804ec69ffb4f1c0e788eed9d3411b215a55c /Demos/Device/Mouse/Mouse.h | |
parent | ea743970951cbcd6d5206b3136de8c9eb90298a5 (diff) | |
download | lufa-958a1b4e2bffdc548b34edd322d30cec5d5feacd.tar.gz lufa-958a1b4e2bffdc548b34edd322d30cec5d5feacd.tar.bz2 lufa-958a1b4e2bffdc548b34edd322d30cec5d5feacd.zip |
Fixed Mouse and Keyboard device demos not acting in accordance with the HID specification for idle periods (thanks to Brian Dickman).
Removed support for endpoint/pipe non-control interrupts; these did not act in the way users expected, and had many subtle issues.
Diffstat (limited to 'Demos/Device/Mouse/Mouse.h')
-rw-r--r-- | Demos/Device/Mouse/Mouse.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Demos/Device/Mouse/Mouse.h b/Demos/Device/Mouse/Mouse.h index 4eaf457ca..afa5a6a55 100644 --- a/Demos/Device/Mouse/Mouse.h +++ b/Demos/Device/Mouse/Mouse.h @@ -57,23 +57,26 @@ TASK(USB_Mouse_Report);
/* Macros: */
+ /** Idle period indicating that reports should be sent only when the inputs have changed */
+ #define HID_IDLE_CHANGESONLY 0
+
/** HID Class specific request to get the next HID report from the device. */
- #define REQ_GetReport 0x01
+ #define REQ_GetReport 0x01
/** HID Class specific request to get the idle timeout period of the device. */
- #define REQ_GetIdle 0x02
+ #define REQ_GetIdle 0x02
/** HID Class specific request to send the next HID report to the device. */
- #define REQ_SetReport 0x09
+ #define REQ_SetReport 0x09
/** HID Class specific request to set the idle timeout period of the device. */
- #define REQ_SetIdle 0x0A
+ #define REQ_SetIdle 0x0A
/** HID Class specific request to get the current HID protocol in use, either report or boot. */
- #define REQ_GetProtocol 0x03
+ #define REQ_GetProtocol 0x03
/** HID Class specific request to set the current HID protocol in use, either report or boot. */
- #define REQ_SetProtocol 0x0B
+ #define REQ_SetProtocol 0x0B
/* Type Defines: */
/** Type define for the mouse HID report structure, for creating and sending HID reports to the host PC.
|