summaryrefslogtreecommitdiff
path: root/hid/src/main.cpp
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-07-14 13:23:41 +0300
committerDevaev Maxim <[email protected]>2021-07-14 13:23:41 +0300
commit937d8320f84f48572900dc495a80ac09e04ab413 (patch)
tree669de2f9f5f9c08ef6218b94e9c8cb8add8df6de /hid/src/main.cpp
parentf641afcc6be81145b542fcdb4aa7096fca29d2db (diff)
moved some patches to upstream
Diffstat (limited to 'hid/src/main.cpp')
-rw-r--r--hid/src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/hid/src/main.cpp b/hid/src/main.cpp
index 118e0d4e..ca00f7dc 100644
--- a/hid/src/main.cpp
+++ b/hid/src/main.cpp
@@ -212,8 +212,8 @@ static void _cmdMouseMoveEvent(const uint8_t *data) { // 4 bytes
// See /kvmd/apps/otg/hid/keyboard.py for details
if (_usb_mouse_abs) {
_usb_mouse_abs->sendMove(
- (PROTO::merge8_int(data[0], data[1]) + 32768) / 2,
- (PROTO::merge8_int(data[2], data[3]) + 32768) / 2
+ PROTO::merge8_int(data[0], data[1]),
+ PROTO::merge8_int(data[2], data[3])
);
}
}