Pārlūkot izejas kodu

Fix compiler warning with Keyboard.set_modifier

main
PaulStoffregen pirms 8 gadiem
vecāks
revīzija
4b7151d0e0
7 mainītis faili ar 10 papildinājumiem un 10 dzēšanām
  1. +1
    -1
      teensy3/usb_keyboard.h
  2. +2
    -2
      usb_disk/usb_api.cpp
  3. +1
    -1
      usb_disk/usb_api.h
  4. +2
    -2
      usb_hid/usb_api.cpp
  5. +1
    -1
      usb_hid/usb_api.h
  6. +2
    -2
      usb_serial_hid/usb_api.cpp
  7. +1
    -1
      usb_serial_hid/usb_api.h

+ 1
- 1
teensy3/usb_keyboard.h Parādīt failu

@@ -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; }

+ 2
- 2
usb_disk/usb_api.cpp Parādīt failu

@@ -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)
{

+ 1
- 1
usb_disk/usb_api.h Parādīt failu

@@ -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);

+ 2
- 2
usb_hid/usb_api.cpp Parādīt failu

@@ -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)
{

+ 1
- 1
usb_hid/usb_api.h Parādīt failu

@@ -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);

+ 2
- 2
usb_serial_hid/usb_api.cpp Parādīt failu

@@ -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)
{

+ 1
- 1
usb_serial_hid/usb_api.h Parādīt failu

@@ -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);

Notiek ielāde…
Atcelt
Saglabāt