HID: mouse RAW data

This commit is contained in:
2020-06-07 14:54:55 +02:00
parent beaad49558
commit 42ec2611e3
2 changed files with 22 additions and 0 deletions

View File

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