size_t write(int n) { return write((uint8_t)n); } | size_t write(int n) { return write((uint8_t)n); } | ||||
using Print::write; | using Print::write; | ||||
void write_unicode(uint16_t n) { usb_keyboard_write_unicode(n); } | void write_unicode(uint16_t n) { usb_keyboard_write_unicode(n); } | ||||
void set_modifier(uint8_t c) { keyboard_modifier_keys = c; } | |||||
void set_modifier(uint16_t c) { keyboard_modifier_keys = (uint8_t)c; } | |||||
void set_key1(uint8_t c) { keyboard_keys[0] = c; } | void set_key1(uint8_t c) { keyboard_keys[0] = c; } | ||||
void set_key2(uint8_t c) { keyboard_keys[1] = c; } | void set_key2(uint8_t c) { keyboard_keys[1] = c; } | ||||
void set_key3(uint8_t c) { keyboard_keys[2] = c; } | void set_key3(uint8_t c) { keyboard_keys[2] = c; } |
void usb_keyboard_class::set_modifier(uint8_t c) | |||||
void usb_keyboard_class::set_modifier(uint16_t c) | |||||
{ | { | ||||
keyboard_report_data[0] = c; | |||||
keyboard_report_data[0] = (uint8_t)c; | |||||
} | } | ||||
void usb_keyboard_class::set_key1(uint8_t c) | void usb_keyboard_class::set_key1(uint8_t c) | ||||
{ | { |
#endif | #endif | ||||
using Print::write; | using Print::write; | ||||
void write_unicode(uint16_t unicode) { write_keycode(unicode_to_keycode(unicode)); } | void write_unicode(uint16_t unicode) { write_keycode(unicode_to_keycode(unicode)); } | ||||
void set_modifier(uint8_t); | |||||
void set_modifier(uint16_t); | |||||
void set_key1(uint8_t); | void set_key1(uint8_t); | ||||
void set_key2(uint8_t); | void set_key2(uint8_t); | ||||
void set_key3(uint8_t); | void set_key3(uint8_t); |
void usb_keyboard_class::set_modifier(uint8_t c) | |||||
void usb_keyboard_class::set_modifier(uint16_t c) | |||||
{ | { | ||||
keyboard_report_data[0] = c; | |||||
keyboard_report_data[0] = (uint8_t)c; | |||||
} | } | ||||
void usb_keyboard_class::set_key1(uint8_t c) | void usb_keyboard_class::set_key1(uint8_t c) | ||||
{ | { |
virtual size_t write(uint8_t); | virtual size_t write(uint8_t); | ||||
using Print::write; | using Print::write; | ||||
void write_unicode(uint16_t unicode) { write_keycode(unicode_to_keycode(unicode)); } | void write_unicode(uint16_t unicode) { write_keycode(unicode_to_keycode(unicode)); } | ||||
void set_modifier(uint8_t); | |||||
void set_modifier(uint16_t); | |||||
void set_key1(uint8_t); | void set_key1(uint8_t); | ||||
void set_key2(uint8_t); | void set_key2(uint8_t); | ||||
void set_key3(uint8_t); | void set_key3(uint8_t); |
void usb_keyboard_class::set_modifier(uint8_t c) | |||||
void usb_keyboard_class::set_modifier(uint16_t c) | |||||
{ | { | ||||
keyboard_report_data[0] = c; | |||||
keyboard_report_data[0] = (uint8_t)c; | |||||
} | } | ||||
void usb_keyboard_class::set_key1(uint8_t c) | void usb_keyboard_class::set_key1(uint8_t c) | ||||
{ | { |
#endif | #endif | ||||
using Print::write; | using Print::write; | ||||
void write_unicode(uint16_t unicode) { write_keycode(unicode_to_keycode(unicode)); } | void write_unicode(uint16_t unicode) { write_keycode(unicode_to_keycode(unicode)); } | ||||
void set_modifier(uint8_t); | |||||
void set_modifier(uint16_t); | |||||
void set_key1(uint8_t); | void set_key1(uint8_t); | ||||
void set_key2(uint8_t); | void set_key2(uint8_t); | ||||
void set_key3(uint8_t); | void set_key3(uint8_t); |