PROJECT 08 / GAZE AND A REAL KEYBOARD / TWO DEVICES
Look
and Type.
I wear the headset in passthrough and keep my hands on the laptop's real keyboard. What my head points at on the Giant & Mini desk lights up, and what I type appears above it. Enter asks an AI to build what I typed on an empty place, or to change the thing I am looking at. Shift+Enter only writes the words on it as a label. Every earlier version of a thing stays lined up behind it, and I can slide through them and bring one back. A double click on the trackpad enlarges one thing and hides the rest; from there, keeping my eyes on a sign for three seconds takes me into it as a mini.
How the scene works
- The headset turns its head matrix into a gaze ray and picks a thing by angle, not by a ray hit. The thing in focus gets a head start so the focus does not flicker, and it stays when I look down at the keyboard.
- The laptop turns every key into a new line of text with one pure function. The first letter locks the line onto the thing in focus.
- The headset shares where the head points, the laptop shares the line, and every client draws the same picture from those variables. Only the laptop asks the AI.
- A change never overwrites. The version it replaces goes onto the thing's past (the six most recent are kept), and any of them can be brought back without losing the others.
- To stand the virtual desk on my real one, I lay a controller on the real desk and press A (or X on the left one). The front edge of the virtual desk moves under the controller.
INTERACTIVE STUDY
Interactive study
01—05A head, a keyboard and a past, in five levels
A step-by-step course that runs the scene's own code in the browser. It continues from the Giant & Mini course, which explains the desk, table coordinates and things built from parts.
A head matrix, column by column, and the gaze ray that leaves it along minus its third axis.
02Picking by angle↗How far off each thing is as an angle, a head start for the one in focus, and why looking down keeps it.
03A line of text is a state↗One function from (line, key, focus) to a new line: the lock, Enter, Shift+Enter, Escape, Backspace and the Space+K chord.
04Two devices, one picture↗The headset owns the gaze, the laptop owns the line. Two simulated clients that exchange only those variables.
05Keeping the past↗A change pushes the old version onto a list. Sliding the stack of versions, and bringing one back without losing any.
The pages run the scene's own modules: gazeType.js, edits.js and stackView.js, with the Giant & Mini project's desk.js, things.js and thingView.js. In place of the engine, a small stand-in node multiplies the same matrices and a 2D canvas draws the shapes. No page has an AI behind it: where the scene would ask one, the page says so or uses a saved edit. Where a page needs lines from the scene file itself, it runs a copy and shows the original lines with their line numbers. The full scene is deskTyping.js.