-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkeymap.c
More file actions
22 lines (20 loc) · 864 Bytes
/
keymap.c
File metadata and controls
22 lines (20 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "key_config_t.h"
const key_config_t keys[] = {
{"click", 0x00, 0xF0, 0x00, 0x00},
{"middle-button", 0x00, 0xF2, 0x00, 0x00},
{"menu", 0x00, 0xF1, 0x00, 0x00},
{"backward", 0x00, 0xF3, 0x00, 0x00},
{"forward", 0x00, 0xF4, 0x00, 0x00},
{"dpi-up", 0x71, 0x01, 0x00, 0x00},
{"dpi-down", 0x71, 0x02, 0x00, 0x00},
{"led-color-switch", 0x72, 0x01, 0x00, 0x00},
{"media-play-pause", 0x04, 0x00, 0x00, 0xCD},
{"media-stop", 0x04, 0x00, 0x00, 0xB7},
{"media-previous", 0x04, 0x00, 0x00, 0xB6},
{"media-next", 0x04, 0x00, 0x00, 0xB5},
{"volume-up", 0x04, 0x00, 0x00, 0xE9},
{"volume-down", 0x04, 0x00, 0x00, 0xEA},
{"volume-mute", 0x04, 0x00, 0x00, 0xE2},
{"disable", 0x00, 0x00, 0x00, 0x00}
};
const int numKeys = sizeof(keys) / sizeof(keys[0]);