OAP Lizzard A game interface engine
Game interfaces, outside the game Settings

Building Lizzard / The development journal

Project journal

Milestones, decisions, experiments, mistakes and fixes, newest first. Open an entry for what was checked, the outcome and what is still uncertain. An entry written after the day it describes says when it was written.

Journal entries

Find entries

1–1 of 1 entries for Stage 4 · Mouse and events (of 61 in the journal), newest first. Show all

event Stage 4 · Mouse and events Milestone follow-up

Mouse, events and the clock

Stage 4 gave Lizzard a mouse, events and a clock: frames answer hovering, clicks, the wheel and dragging, events can be fired by hand, and timers run.

Read the entry: Mouse, events and the clock

Any event name the game doesn't know raises an error, as it does in the game, and the window redraws only when something visible has changed. A new Events tab fires an event by hand.

Nine probe cases for input ran on Retail: four differed and were fixed, and I tried the mouse in the live window the same day. Still not verified: the drag threshold, and the order in which overlapping frames are tested for the mouse and frames receive an event.

Follow-up, : Presses whose release never arrives are now cancelled. If the window loses the focus while a button or key is held, no release script runs for it; the window used to fake a key-up instead, running bindings nobody had asked for. The change began as a patch from another project that uses Lizzard, and reviewing it found four faults, the worst a held movement key that would never have stopped. Not yet tried by hand.

Follow-up, : A click now lands where the mouse was when it was made. Mouse moves arrive faster than they can be handled, so Lizzard keeps only the newest position of those waiting. That one position was shared by every waiting move, so when the interface was busy (a load, a slow addon), a click followed by more movement was handled as if made at the later spot, and a button could be missed or a drag start in the wrong place. A click, key or wheel now closes the run of moves before it. A review by another project that uses Lizzard pointed to it; a test that holds the interface busy and clicks reproduced the miss before the change. Not tried by hand, since it needs a stalled interface.

Link to this entry