Skip to content

Commit 02f908e

Browse files
committed
define button constant
1 parent 84d3180 commit 02f908e

1 file changed

Lines changed: 5 additions & 50 deletions

File tree

  • ch55xduino/ch55x/libraries/Generic_Examples/examples/05.USB/HidMouse/src/userUsbHidMouse

ch55xduino/ch55x/libraries/Generic_Examples/examples/05.USB/HidMouse/src/userUsbHidMouse/USBHIDMouse.h

Lines changed: 5 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,14 @@
1-
#ifndef __USB_HID_KBD_H__
2-
#define __USB_HID_KBD_H__
1+
#ifndef __USB_HID_MOUSE_H__
2+
#define __USB_HID_MOUSE_H__
33

44
#include <stdint.h>
55
#include "include/ch5xx.h"
66
#include "include/ch5xx_usb.h"
77

88

9-
#define KEY_LEFT_CTRL 0x80
10-
#define KEY_LEFT_SHIFT 0x81
11-
#define KEY_LEFT_ALT 0x82
12-
#define KEY_LEFT_GUI 0x83
13-
#define KEY_RIGHT_CTRL 0x84
14-
#define KEY_RIGHT_SHIFT 0x85
15-
#define KEY_RIGHT_ALT 0x86
16-
#define KEY_RIGHT_GUI 0x87
17-
18-
#define KEY_UP_ARROW 0xDA
19-
#define KEY_DOWN_ARROW 0xD9
20-
#define KEY_LEFT_ARROW 0xD8
21-
#define KEY_RIGHT_ARROW 0xD7
22-
#define KEY_BACKSPACE 0xB2
23-
#define KEY_TAB 0xB3
24-
#define KEY_RETURN 0xB0
25-
#define KEY_ESC 0xB1
26-
#define KEY_INSERT 0xD1
27-
#define KEY_DELETE 0xD4
28-
#define KEY_PAGE_UP 0xD3
29-
#define KEY_PAGE_DOWN 0xD6
30-
#define KEY_HOME 0xD2
31-
#define KEY_END 0xD5
32-
#define KEY_CAPS_LOCK 0xC1
33-
#define KEY_F1 0xC2
34-
#define KEY_F2 0xC3
35-
#define KEY_F3 0xC4
36-
#define KEY_F4 0xC5
37-
#define KEY_F5 0xC6
38-
#define KEY_F6 0xC7
39-
#define KEY_F7 0xC8
40-
#define KEY_F8 0xC9
41-
#define KEY_F9 0xCA
42-
#define KEY_F10 0xCB
43-
#define KEY_F11 0xCC
44-
#define KEY_F12 0xCD
45-
#define KEY_F13 0xF0
46-
#define KEY_F14 0xF1
47-
#define KEY_F15 0xF2
48-
#define KEY_F16 0xF3
49-
#define KEY_F17 0xF4
50-
#define KEY_F18 0xF5
51-
#define KEY_F19 0xF6
52-
#define KEY_F20 0xF7
53-
#define KEY_F21 0xF8
54-
#define KEY_F22 0xF9
55-
#define KEY_F23 0xFA
56-
#define KEY_F24 0xFB
9+
#define BUTTON_LEFT 0x01
10+
#define BUTTON_RIGHT 0x02
11+
#define BUTTON_CENTER 0x04
5712

5813
#ifdef __cplusplus
5914
extern "C" {

0 commit comments

Comments
 (0)