mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
refactoring
This commit is contained in:
@@ -69,6 +69,7 @@ using namespace DRIVERS;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
class UsbKeyboard : public DRIVERS::Keyboard {
|
||||
public:
|
||||
UsbKeyboard() : DRIVERS::Keyboard(DRIVERS::USB_KEYBOARD) {}
|
||||
@@ -110,7 +111,7 @@ class UsbKeyboard : public DRIVERS::Keyboard {
|
||||
KeyboardLedsState getLeds() override {
|
||||
uint8_t leds = _kbd.getLeds();
|
||||
KeyboardLedsState result = {
|
||||
.caps = leds & LED_CAPS_LOCK,
|
||||
.caps = leds & LED_CAPS_LOCK,
|
||||
.scroll = leds & LED_SCROLL_LOCK,
|
||||
.num = leds & LED_NUM_LOCK,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user