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