summaryrefslogtreecommitdiff
path: root/hid/src/main.cpp
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-11 02:12:38 +0300
committerMaxim Devaev <[email protected]>2022-07-11 02:12:38 +0300
commit89aff795fd7905aaf192428bb99814c13b98d5c2 (patch)
tree8f80c599f0c6f7d754f702f106c2e30d2fa60395 /hid/src/main.cpp
parent1afd96cdb932ccb1df0f0ed7e6662080f2618a26 (diff)
refactoring
Diffstat (limited to 'hid/src/main.cpp')
-rw-r--r--hid/src/main.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/hid/src/main.cpp b/hid/src/main.cpp
index fe030a3a..f518fa25 100644
--- a/hid/src/main.cpp
+++ b/hid/src/main.cpp
@@ -178,21 +178,21 @@ static void _cmdMouseButtonEvent(const uint8_t *data) { // 2 bytes
_state & PROTO::CMD::MOUSE::_button::SELECT, \
_state & PROTO::CMD::MOUSE::_button::STATE
_mouse->sendButtons(
- MOUSE_PAIR(data[0], LEFT),
- MOUSE_PAIR(data[0], RIGHT),
- MOUSE_PAIR(data[0], MIDDLE),
- MOUSE_PAIR(data[1], EXTRA_UP),
- MOUSE_PAIR(data[1], EXTRA_DOWN)
- );
+ MOUSE_PAIR(data[0], LEFT),
+ MOUSE_PAIR(data[0], RIGHT),
+ MOUSE_PAIR(data[0], MIDDLE),
+ MOUSE_PAIR(data[1], EXTRA_UP),
+ MOUSE_PAIR(data[1], EXTRA_DOWN)
+ );
# undef MOUSE_PAIR
}
static void _cmdMouseMoveEvent(const uint8_t *data) { // 4 bytes
// See /kvmd/apps/otg/hid/keyboard.py for details
_mouse->sendMove(
- PROTO::merge8_int(data[0], data[1]),
- PROTO::merge8_int(data[2], data[3])
- );
+ PROTO::merge8_int(data[0], data[1]),
+ PROTO::merge8_int(data[2], data[3])
+ );
}
static void _cmdMouseRelativeEvent(const uint8_t *data) { // 2 bytes