dirkwhoffmann / virtualc64

VirtualC64 is a cycle-accurate C64 emulator for macOS
https://dirkwhoffmann.github.io/virtualc64
Other
351 stars 33 forks source link

Expected mouse movement deltas are different in VirtualC64 and vAmiga #704

Closed dirkwhoffmann closed 2 years ago

dirkwhoffmann commented 2 years ago

Both VirtualC64 and vAmiga receive mouse coordinates via two functions called Mouse::setXY and Mouse::setDxDy. However, VirtualC64 expects the incoming values to be scaled differently than vAmiga. To achieve the same mouse movement, the values passed to VirtualC64 must be about 10 times larger.

TODO: Align both emulators. Adapt the value range from vAmiga.

dirkwhoffmann commented 2 years ago

After reviewing the current code bases, it seems like the only difference between VirtualC64 and vAmiga is the sign of the y-coordinate. This has been changed (vAmiga wins).