HID: mouse over socketio

This commit is contained in:
2020-06-05 16:42:23 +02:00
parent 12644f1e39
commit deb2139d96
3 changed files with 7 additions and 6 deletions

View File

@@ -39,7 +39,6 @@ $(document).ready(function(){
});
$("canvas").mousemove(function(event){
// sendMouse(0, event.originalEvent.movementX, event.originalEvent.movementY);
posX=event.offsetX;
posY=event.offsetY;
handleMouse();
@@ -65,7 +64,7 @@ function sendMouse(btn, x, y) {
</script>
<span></span><br/><br/>
<canvas width=500 height=500 style="border: 1px solid black" oncontextmenu="return false"></canvas>
<canvas width=1920 height=1080 style="border: 1px solid black" oncontextmenu="return false"></canvas>
<!--<img src="placeholder.png" width=1920 height=1080 onmousemove='console.log("aaa");' />-->
</body>
</html>