1 /* usb_keyboard_codes.h */
3 This file is part of the AVR-Crypto-Lib.
4 Copyright (C) 2013 Daniel Otte (daniel.otte@rub.de)
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef USB_KEYBOARD_CODES_H_
21 #define USB_KEYBOARD_CODES_H_
23 /* Keyboard usage values, see usb.org's HID-usage-tables document, chapter
24 * 10 Keyboard/Keypad Page for more codes.
26 #define MOD_CONTROL_LEFT (1<<0)
27 #define MOD_SHIFT_LEFT (1<<1)
28 #define MOD_ALT_LEFT (1<<2)
29 #define MOD_GUI_LEFT (1<<3)
30 #define MOD_CONTROL_RIGHT (1<<4)
31 #define MOD_SHIFT_RIGHT (1<<5)
32 #define MOD_ALT_RIGHT (1<<6)
33 #define MOD_GUI_RIGHT (1<<7)
90 #endif /* USB_KEYBOARD_CODES_H_ */