← board

PCL: mouse-coordinate + keyboard input events

Why

PCL TControl currently exposes only OnClick (a coordinate-less notify). Any app that needs to know where the pointer is, which button, or which key — card drag/drop, a form designer, a canvas editor — cannot be written. Found building the solitaire GUI, which had to fall back to per-pile buttons.

Scope

Add to TControl, wired from GTK3 signals in gtk3widgets:

Mirror the existing OnClick wiring (SignalConnectData(h, 'clicked', @ControlClickTramp, ...) + a trampoline that fetches the handler and dispatches). A widget must request the relevant GdkEventMask (button/pointer-motion/key) and, for keys, be focusable.

Coverage / test

Acceptance

Notes

Log

Landed in commits 8cd601b (mouse), 1098e14 (keyboard), c2568b4 (resize).