craigix said:
Mithrildor said:
Save mouse location (of the amiga) and save click location. Calculate the difference in height and width and insert that as mouse input and move the mouse at max speed.
Insert it where? The mouse does not have coords in memory in a standard place as far as I know, the mouse port is just read as a joystick.
The difference from the previous recorded X to the new X = some period of time to send the "joystick left/right" signal. Ditto for the Y delta in the up/down direction.
Of course, what period of time does it require to remain perfectly synced? And what happens if the application in question resets the mouse cursor to center, or anywhere else for that matter? What about bounds, in the event there is some game or program where the mouse cursor was trapped within a smaller window rather than the entire screen?
If it were anything like DOS it'd be pretty easy: just update the interrupt and you can handle all those things within the driver, but I don't think the Amiga handled the mouse the same way.
Maybe some sort of per-application hack can be worked out, like a config file which contains pointer data where the mouse information can be read from. Then if you tap the touchpad, it sends the joystick left/righ/up/down while constantly reading back that pointer until it matches where it thinks it should be.