Stage 4 · Mouse and events / 26 October 2026
Mouse, events and the clock
Goal: give the engine hit testing, mouse scripts, dragging, events, the game clock and timers. Outcome: the stage 4 sample could be dragged, hovered, clicked and scrolled, and a dot blinked on the game's clock; four of nine input probe cases differed and were fixed two days later.
What these pictures can't show
- A still picture cannot show the hover, the clicks, dragging or the blinking dot; the sample's own notes describe them.
- Text was not drawn until stage 5, so the window has no title and the button no label.
The mouse sample
Blizzard's ButtonFrameTemplate holding the stage 4 sample. Everything shows itself with colour: the grey square turns green under the mouse and its size follows the wheel, each click on the red OK button adds a gold block, and the red dot at the bottom left blinks twice a second through C_Timer.NewTicker.
Runner (no window) · Captured during the work · · 1280 × 800