HID: mouse over socketio
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<input type=text />
|
||||
|
||||
<br/>
|
||||
Server response: <span></span>
|
||||
|
||||
@@ -78,4 +80,4 @@ $(window).bind('keydown', function(event) {
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user