HID: mouse RAW data

This commit is contained in:
2020-06-07 15:07:12 +02:00
parent 42ec2611e3
commit 0dbf3f9b7a
2 changed files with 8 additions and 8 deletions

View File

@@ -87,14 +87,11 @@
wheel: wheel,
}
var data = new Array(6);
var data = new Array(4);
data[0] = btn;
data[1] = x & 255;
data[2] = x >> 8
data[3] = y & 255;
data[4] = y >> 8
data[5] = 0;
data[1] = x;
data[2] = y;
data[3] = wheel;
socket.emit('mouseEvent', JSON.stringify(obj));
socket.emit('mouseEventRaw', data);