DOOM running live inside the Touch Bar of a MacBook Pro.
./build.sh./run.sh
Look for the 🐀 icon in your menu bar, not the Touch Bar. The shareware doom1.wad is already bundled in assets/wads/.
- Left-click 🐀: DOOM takes over the Touch Bar + keyboard
- Switch to any other app: instantly reverts to normal (DOOM keeps running in the background)
- Right-click 🐀: Settings / Controls / Debug Log / Quit
Arrows move/turn · Space fires · E uses (doors/switches) · Return confirms · Escape = menu
src/doom/— vendored id Software linuxdoom-1.10 source, ported off X11 onto an in-memory framebuffer (tb_bridge.c), plus a few 64-bit portability fixessrc/touchbar/— Swift/AppKit host that renders the framebuffer to the physical Touch Bar via the privatepresentSystemModalTouchBarAPIbuild.sh/run.sh— plain clang/swiftc + ad-hoc codesign
Relies on undocumented AppKit APIs that Apple could change. Only tested on a 13" MacBook Pro (M2).
DOOM engine source: GPLv2, see LICENSE. doom1.wad is id Software's freely-distributable shareware data.