OnMouseMove gives wrong Y on classic amiga
Posted: Fri Oct 06, 2017 10:18 pm
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
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