Skip to content

Run interfaces on a real table over TUIO - #2

Merged
jeffcrouse merged 4 commits into
mainfrom
tuio-table
Nov 23, 2026
Merged

jeffcrouse merged 4 commits into
mainfrom
tuio-table

Conversation

@jeffcrouse

Copy link
Copy Markdown
Member

Lets the desktop app run on a physical table: TUIO 1.1 input, present mode, a control puck for switching interfaces, puck assignment and calibration, and safe upgrades of existing designer workspaces. Interfaces need no changes; the wire protocol stays at version 1.

To be released first as v0.2.0-beta.1 from this branch for testing, and merged after.

What's in it

  • TUIO input in the main process (electron/tuio.js), off unless enabled in Settings > Table input. Tags are mapped to logical markerIds and calibrated before the renderer sees them.
  • Present mode: kiosk fullscreen, device scale factor 1, no chrome, native touch ignored. --present or "present": true in table.json.
  • Control puck opens an interface picker on the table.
  • Table > Assign Pucks / Calibrate, live, per machine in table.json.
  • Workspace upgrades: reference files refreshed only if unedited; edited ones get a .new copy; deletions respected; interfaces never touched. 0.1.x workspaces matched against recorded hashes (scripts/seed-history.json).
  • Beta tags (containing -) are published as pre-releases.
  • docs/TABLE.md for setting up a table.

Testing

  • npm test: 33 unit tests (new, now in CI).
  • npm run smoke: 76/76 locally on macOS, three consecutive runs; covers upgrade, TUIO, enrollment, calibration, and a present-mode launch. This PR is the first Windows run.
  • npm run smoke:embed: 19/19.
  • Upgrade tried on a copy of a real 0.1.x workspace.
  • Not yet tried on real table hardware; docs/TABLE.md marks hardware specifics unconfirmed and has an on-site checklist.

🤖 Generated with Claude Code

jeffcrouse and others added 4 commits November 23, 2026 11:28
The desktop app can now be what runs on the table. It listens for TUIO 1.1
(pucks as 2Dobj, fingers as 2Dcur) in the main process, maps printed tags to
the logical markerIds interfaces already use, applies calibration, and feeds
the result into TableModel like any other input. Interfaces need no changes
and the wire protocol stays at version 1.

- Present mode: kiosk fullscreen on the table's display, device scale factor
  forced to 1, no chrome, native touch ignored. Chosen at launch by
  table.json or --present.
- A control puck opens an interface picker on the table; fingers used on it
  never reach the interface.
- Table > Assign Pucks and Table > Calibrate, applied live, stored per machine
  in table.json (versioned, with migrations).
- Workspaces are upgraded on open: reference files the app wrote are refreshed
  if unedited, edited ones get a .new copy beside them, deletions are
  respected, interfaces are never touched. 0.1.x workspaces are matched against
  recorded hashes of what those releases shipped.
- SDK_VERSION now follows package.json and the release check enforces it.
- npm test: unit tests for OSC, TUIO frames, table.json and upgrades.
- Smoke covers upgrade, TUIO, enrollment, calibration and a present-mode launch.
- docs/TABLE.md: preparing the table's computer and setting a table up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tag containing a dash is now marked as a pre-release, so publishing a beta's
draft does not make it the Latest release that designers download.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It landed on main after 0.2.0-beta.1 was cut, so the rebase had folded it
into that release's section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeffcrouse
jeffcrouse merged commit 201fc70 into main Nov 23, 2026
2 checks passed
@jeffcrouse
jeffcrouse deleted the tuio-table branch November 23, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant