src_vm/archive/scratch-vm-otto.js
// Feed mouse events as VM I/O events.
Feed mouse events as VM I/O events.
Feed mouse events as VM I / O events .
function mousemove(e) {
    const mouse = getEventXY(e);
    const rect = canvas.getBoundingClientRect();
    Scratch.vm.postIOData('mouse', {
      x: mouse.x - rect.left,
      y: mouse.y - rect.top,
      canvasWidth: rect.width,
      canvasHeight: rect.height
    });
  }
function mousemove ( e ) { const mouse = getEventXY ( e ) ; const rect = canvas . getBoundingClientRect ( ) ; Scratch . vm . postIOData ( 'mouse' , { x : mouse . x - rect . left , y : mouse . y - rect . top , canvasWidth : rect . width , canvasHeight : rect . height } ) ; }
Feed mouse events as VM I/O events.
Feed mouse events as VM I / O events .