Skip to content

The USB link from the shared emulink submodule - #140

Merged
finger563 merged 2 commits into
feat/remote-touchfrom
feat/emulink-submodule
Nov 16, 2026
Merged

finger563 merged 2 commits into
feat/remote-touchfrom
feat/emulink-submodule

Conversation

@finger563

Copy link
Copy Markdown
Contributor

Stacked on the touch PR (#139); retarget to main once it merges. The same change is in the other emulator's repo (esp-cpp/tab5-emu).

components/devlink, main/remote_control.hpp, tools/emulink and web/ were the same in esp-box-emu and tab5-emu. They now live in one place, esp-cpp/emulink, a submodule at components/emulink.

What changes here

  • Firmware: the emulink component replaces devlink in the component list. It contains DevLink and the header-only RemoteControl, which main includes with its own cart.hpp, gui.hpp and settings.hpp.
  • Board: the board component comes from idf_build_set_property(EMULINK_BOARD_COMPONENT ...), set before project(). It defaults to box-emu; the Tab5 sets tab5-emu.
  • Symlinks: tools/emulink and web are now links into the submodule, so cd tools/emulink && python -m emulink and python3 -m http.server -d web work as before.
  • Pages workflow: it fetches only the emulink submodule and publishes components/emulink/web. It now triggers on a change to the submodule's commit.

What the shared copy merged

  • Panic details: the box's extra panic details (cache errors, the faulting address). The Xtensa-only parts are guarded, so the same file builds for the P4.
  • Settings parsing: strtol instead of std::from_chars (one file for both).
  • Comments: the touch request's comment covers both boards.

Testing

  • Both emulators build.
  • Both boards were updated over the link with these builds.
  • Status, screenshots and a touch work on both boards afterwards.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY

finger563 and others added 2 commits November 15, 2026 18:48
components/devlink, main/remote_control.hpp, tools/emulink and web/ were
the same in esp-box-emu and tab5-emu; they are esp-cpp/emulink now, a
submodule at components/emulink (the `emulink` component: DevLink and
the header-only RemoteControl). tools/emulink and web are links into it,
so `cd tools/emulink && python -m emulink` and the local web server work
as before; the pages workflow publishes components/emulink/web. The
board component comes from EMULINK_BOARD_COMPONENT (box-emu by default).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
@finger563
finger563 merged commit f11645c into feat/remote-touch Nov 16, 2026
@finger563
finger563 deleted the feat/emulink-submodule branch November 16, 2026 02:33
finger563 added a commit that referenced this pull request Nov 16, 2026
…he shared emulink submodule (#139)

* Touch over the USB link (emulink tap / touch / drag), touch as Dark Forces' mouse

The link's test control gets TOUCH (protocol 5): a finger at (x, y), held
for a time or until the next TOUCH, in the screen's pixels or (flag 0x80)
the screenshot's, which the firmware maps through the frame's place on
the screen. The launcher's LVGL menus take it through a pointer input
device of its own; games read it with BoxEmu::touch_pointer().

emulink: tap, touch (hold / lift) and drag, --frame for screenshot
pixels. The web console's screen is a touch screen: click or drag on it.

Dark Forces (TheForceEngine feat/touch-mouse, which also carries the
RISC-V build fix and darkforces_forget_block() from tab5-emu): touch is
the mouse. In the menus the finger is the cursor (a press clicks); in a
mission a drag is mouse look and a quick tap fires.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY

* Remote touch: the cart for the frame's size is const (cppcheck constVariablePointer)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY

* The USB link from the emulink submodule (#140)

components/devlink, main/remote_control.hpp, tools/emulink and web/ were
the same in esp-box-emu and tab5-emu; they are esp-cpp/emulink now, a
submodule at components/emulink (the `emulink` component: DevLink and
the header-only RemoteControl). tools/emulink and web are links into it,
so `cd tools/emulink && python -m emulink` and the local web server work
as before; the pages workflow publishes components/emulink/web. The
board component comes from EMULINK_BOARD_COMPONENT (box-emu by default).


Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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