fork download
  1. global $sx;
  2. global $sy;
  3. global $fx;
  4. global $fy;
  5. $sx = cursor_pos_x();
  6. $sy = cursor_pos_y();
  7. $fx = c("main")->x;
  8. $fy = c("main")->y;
  9. c("main->dvi")->enable = true;
  10.  
  11. static public function onmouseup($self, $button, $shift, $x, $y)
  12. {
  13. c("main->dvi")->enable = false;
  14. }
  15. static public function onmousemove($self, $shift, $x, $y)
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
global $sx;
global $sy;
global $fx;
global $fy;
$sx = cursor_pos_x();
$sy = cursor_pos_y();
$fx = c("main")->x;
$fy = c("main")->y;
c("main->dvi")->enable = true;

static public function onmouseup($self, $button, $shift, $x, $y)
{
c("main->dvi")->enable = false;
}
static public function onmousemove($self, $shift, $x, $y)