\ Indicates mouse position relative to center of canvas const unknown=0,north=1,east=2,south=3,west=4; var current; procedure direction; var x,y; begin current:=unknown; if cvx>-1 then begin x:=cvx-250; y:=150-cvy; if -xy then current:=east end else if -x>y then begin if x>y then current:=south; if x-1 then begin call cvline(cvx,0,cvx,300); call cvline(0,cvy,500,cvy); end end end.