Detecting the clicked (or hovered ?) pixel and setting the light pen input high when the CRTC reaches it: http://www.cpcwiki.eu/index.php/Trojan_Light_Phazer