|
|
|
|
|
|
|
|
void set_key4(uint8_t c) { keyboard_keys[3] = c; } |
|
|
void set_key4(uint8_t c) { keyboard_keys[3] = c; } |
|
|
void set_key5(uint8_t c) { keyboard_keys[4] = c; } |
|
|
void set_key5(uint8_t c) { keyboard_keys[4] = c; } |
|
|
void set_key6(uint8_t c) { keyboard_keys[5] = c; } |
|
|
void set_key6(uint8_t c) { keyboard_keys[5] = c; } |
|
|
|
|
|
#ifdef KEYMEDIA_INTERFACE |
|
|
void set_media(uint16_t c) { |
|
|
void set_media(uint16_t c) { |
|
|
if (c == 0) { |
|
|
if (c == 0) { |
|
|
usb_keymedia_release_all(); |
|
|
usb_keymedia_release_all(); |
|
|
|
|
|
|
|
|
press(c); |
|
|
press(c); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
#endif |
|
|
void send_now(void) { usb_keyboard_send(); } |
|
|
void send_now(void) { usb_keyboard_send(); } |
|
|
void press(uint16_t n) { usb_keyboard_press_keycode(n); } |
|
|
void press(uint16_t n) { usb_keyboard_press_keycode(n); } |
|
|
void release(uint16_t n) { usb_keyboard_release_keycode(n); } |
|
|
void release(uint16_t n) { usb_keyboard_release_keycode(n); } |