diff options
author | tomaszduda23 <[email protected]> | 2022-07-07 01:11:55 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-07 02:11:55 +0300 |
commit | dd251eeaf915a207f292ee26e8e04f839d45417f (patch) | |
tree | 01568a7b8b0740b6019ed1a699f0e38139fe5841 /hid/src/main.cpp | |
parent | c09567c1a90d76f302ced8ff3a7db5ad32192cc1 (diff) |
change name of method getOfflineAs->isOffline to simplyfy the interface (#92)
Diffstat (limited to 'hid/src/main.cpp')
-rw-r--r-- | hid/src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hid/src/main.cpp b/hid/src/main.cpp index 30343862..162636ab 100644 --- a/hid/src/main.cpp +++ b/hid/src/main.cpp @@ -284,23 +284,23 @@ static void _sendResponse(uint8_t code) { response[2] = PROTO::OUTPUTS1::DYNAMIC; # endif if (_usb_kbd) { - response[1] |= _usb_kbd->getOfflineAs(PROTO::PONG::KEYBOARD_OFFLINE); + response[1] |= _usb_kbd->isOffline() ? PROTO::PONG::KEYBOARD_OFFLINE : 0; response[1] |= _usb_kbd->getLedsAs(PROTO::PONG::CAPS, PROTO::PONG::SCROLL, PROTO::PONG::NUM); response[2] |= PROTO::OUTPUTS1::KEYBOARD::USB; } else if (_ps2_kbd) { - response[1] |= _ps2_kbd->getOfflineAs(PROTO::PONG::KEYBOARD_OFFLINE); + response[1] |= _ps2_kbd->isOffline() ? PROTO::PONG::KEYBOARD_OFFLINE : 0; response[1] |= _ps2_kbd->getLedsAs(PROTO::PONG::CAPS, PROTO::PONG::SCROLL, PROTO::PONG::NUM); response[2] |= PROTO::OUTPUTS1::KEYBOARD::PS2; } if (_usb_mouse_abs) { - response[1] |= _usb_mouse_abs->getOfflineAs(PROTO::PONG::MOUSE_OFFLINE); + response[1] |= _usb_mouse_abs->isOffline() ? PROTO::PONG::MOUSE_OFFLINE : 0; if (_usb_mouse_abs->isWin98FixEnabled()) { response[2] |= PROTO::OUTPUTS1::MOUSE::USB_WIN98; } else { response[2] |= PROTO::OUTPUTS1::MOUSE::USB_ABS; } } else if (_usb_mouse_rel) { - response[1] |= _usb_mouse_rel->getOfflineAs(PROTO::PONG::MOUSE_OFFLINE); + response[1] |= _usb_mouse_rel->isOffline() ? PROTO::PONG::MOUSE_OFFLINE : 0; response[2] |= PROTO::OUTPUTS1::MOUSE::USB_REL; } // TODO: ps2 # ifdef AUM |