12 #define BTN_WHEELUP 0x1f01
13 #define BTN_WHEELDOWN 0x1f02
18 #define KEY_BACKSLASH_ISO 0xfff
20 #define KEY_BACKSLASH_ISO KEY_BACKSLASH
25 #define N_KEYBYTES_HW ((N_KEYS_HW + 7) / 8)
27 #define N_KEY_ZONES 22 // two strafe side lights (although really they are tied into one control) + logo backlight + Platinum top bar
29 #define N_KEYS_EXTRA 12
31 #define N_BUTTONS_HW 20
32 #define N_BUTTONS_EXTENDED 25
33 #define MOUSE_BUTTON_FIRST (N_KEYS_HW + N_KEY_ZONES + N_KEYS_EXTRA)
34 #define MOUSE_EXTRA_FIRST (MOUSE_BUTTON_FIRST + N_BUTTONS_HW)
36 #define N_KEYS_INPUT (MOUSE_BUTTON_FIRST + N_BUTTONS_EXTENDED)
37 #define N_KEYBYTES_INPUT ((N_KEYS_INPUT + 7) / 8)
39 #define LED_MOUSE N_KEYS_HW
40 #define N_MOUSE_ZONES 6
41 #define N_MOUSE_ZONES_EXTENDED 12
43 #define LED_DPI (LED_MOUSE + 2)
45 #define N_KEYS_EXTENDED (N_KEYS_INPUT + N_MOUSE_ZONES_EXTENDED)
46 #define N_KEYBYTES_EXTENDED ((N_KEYS_EXTENDED + 7) / 8)
56 #define SCAN_SILENT 0x8000
58 #define SCAN_MOUSE 0x1000
66 void hid_kb_translate(
unsigned char* kbinput,
int endpoint,
int length,
const unsigned char* urbinput);
67 void hid_mouse_translate(
unsigned char* kbinput,
short* xaxis,
short* yaxis,
int endpoint,
int length,
const unsigned char* urbinput,
ushort fwversion);
70 void corsair_kbcopy(
unsigned char* kbinput,
int endpoint,
const unsigned char* urbinput);
71 void corsair_mousecopy(
unsigned char* kbinput,
int endpoint,
const unsigned char* urbinput);
void hid_mouse_translate(unsigned char *kbinput, short *xaxis, short *yaxis, int endpoint, int length, const unsigned char *urbinput, ushort fwversion)
void corsair_mousecopy(unsigned char *kbinput, int endpoint, const unsigned char *urbinput)
const key keymap[(((152+22+12)+25)+12)]
void corsair_kbcopy(unsigned char *kbinput, int endpoint, const unsigned char *urbinput)
void hid_kb_translate(unsigned char *kbinput, int endpoint, int length, const unsigned char *urbinput)