Page 1 of 1

OnMouseMove gives wrong Y on classic amiga

Posted: Fri Oct 06, 2017 10:18 pm
by peceha
Hi,

please run that script on PC (all is working fine) and classic amiga (wb3.1 in my case - there is an offset to Y position given by OnMouseMove)

To see something going on you have to start clicking inside the window - that clicking will create points under the coursor (on PC but not on amiga).
Observe the window title for coordinates returned by OnMouseMove

Code: Select all

mx=0
my=0

Function p_HandlerFunc(msg)
	if msg.action="OnMouseDown"
		setTitle(mx..":"..my)
		plot(mx,my,#WHITE)
	endif
	if msg.action="OnMouseMove"
			mx=msg.x
			my=msg.y
	endif
EndFunction

InstallEventHandler({
	OnMouseDown=p_HandlerFunc,
	OnMouseMove=p_HandlerFunc
})

Repeat
	WaitEvent
Forever

Re: OnMouseMove gives wrong Y on classic amiga

Posted: Sun Oct 22, 2017 8:35 pm
by airsoftsoftwair
Right, but this isn't a Hollywood bug but a bug in Plananarama. It works correctly with Hollywood's inbuilt display handler but as soon as Plananarama is active, it doesn't work so this needs to be fixed in Plananarama.

Re: OnMouseMove gives wrong Y on classic amiga

Posted: Tue May 26, 2020 8:43 pm
by airsoftsoftwair

Code: Select all

- Fix: Y mouse position offset returned to Hollywood scripts was often shifted down by the window's
  top border height