@@ -80,7 +80,7 @@ public: | |||
size_t write(int n) { return write((uint8_t)n); } | |||
using Print::write; | |||
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_key2(uint8_t c) { keyboard_keys[1] = c; } | |||
void set_key3(uint8_t c) { keyboard_keys[2] = c; } |
@@ -227,9 +227,9 @@ uint8_t usb_keyboard_class::keycode_to_key(KEYCODE_TYPE keycode) | |||
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) | |||
{ |
@@ -20,7 +20,7 @@ class usb_keyboard_class : public Print | |||
#endif | |||
using Print::write; | |||
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_key2(uint8_t); | |||
void set_key3(uint8_t); |
@@ -220,9 +220,9 @@ uint8_t usb_keyboard_class::keycode_to_key(KEYCODE_TYPE keycode) | |||
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) | |||
{ |
@@ -15,7 +15,7 @@ class usb_keyboard_class : public Print | |||
virtual size_t write(uint8_t); | |||
using Print::write; | |||
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_key2(uint8_t); | |||
void set_key3(uint8_t); |
@@ -572,9 +572,9 @@ uint8_t usb_keyboard_class::keycode_to_key(KEYCODE_TYPE keycode) | |||
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) | |||
{ |
@@ -54,7 +54,7 @@ class usb_keyboard_class : public Print | |||
#endif | |||
using Print::write; | |||
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_key2(uint8_t); | |||
void set_key3(uint8_t); |