Changes

Jump to: navigation, search

Kempston Mouse

66 bytes removed, 13:57, 10 August 2023
/* Get mouse position on screen */
elif virtualY > maxY: virtualY = maxY
# now we translate position from the virtual screen to the current CPC screen mode
mouseX = virtualX if graphicsMode == 2 else (virtualX >> 1 if graphicsMode == 1 else virtualX >> 2)
mouseY = virtualY >> 1 # virtualY/2
if graphicsMode == 2: mouseX = virtualX
elif graphicsMode == 1: mouseX = virtualX >> 1 # virtualX/2
elif graphicsMode == 0: mouseX = virtualX >> 2 # virtualX/4
== Manual ==
8,324
edits