Added Keyboard LED report masks (KEYBOARD_LED_*) to the HID class driver and demos.
[pub/lufa.git] / LUFA / Drivers / USB / Class / Common / HID.h
index 6f2d7c2..5afaf48 100644 (file)
 \r
                /** Constant for a keyboard report modifier byte, indicating that the keyboard's right GUI key is currently pressed. */\r
                #define HID_KEYBOARD_MODIFER_RIGHTGUI   (1 << 7)\r
+               \r
+               /** Constant for a keyboard output report LED byte, indicating that the host's NUM LOCK mode is currently set. */\r
+               #define HID_KEYBOARD_LED_NUMLOCK        (1 << 0)\r
+               \r
+               /** Constant for a keyboard output report LED byte, indicating that the host's CAPS LOCK mode is currently set. */\r
+               #define HID_KEYBOARD_LED_CAPSLOCK       (1 << 1)\r
+\r
+               /** Constant for a keyboard output report LED byte, indicating that the host's SCROLL LOCK mode is currently set. */\r
+               #define HID_KEYBOARD_LED_SCROLLLOCK     (1 << 2)\r
+\r
+               /** Constant for a keyboard output report LED byte, indicating that the host's KATANA mode is currently set. */\r
+               #define HID_KEYBOARD_LED_KATANA         (1 << 3)\r
 \r
        /* Type Defines: */\r
                /** Enum for the different types of HID reports. */\r