Changes
/* 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 2 if graphicsMode == 1 0 else virtualX >> 21)
mouseY = virtualY >> 1 # virtualY/2