Repository navigation
Touch over the USB link, touch as Dark Forces' mouse; the link from the shared emulink submodule - #139
Merged
Conversation
…orces' 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
|
✅Static analysis result - no issues found! ✅ |
ESP-IDF Size Report for 'Esp Box Emu'
FLASH uses app .bin size or json2 flash sum. RAM sums DRAM+IRAM via idf_size. Percentages shown when totals are available. |
finger563
marked this pull request as ready for review
November 16, 2026 00:36
…ariablePointer) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also includes #140, merged into this branch: the USB link (devlink, the test control, emulink, the web console) moves to the shared esp-cpp/emulink submodule at
components/emulink. It also includes a cppcheck fix: thecartpointer in TOUCH's frame mapping is now pointer-to-const.The same change as tab5-emu's PR (the shared emulink, web console and protocol), for the box.
Touch over the USB link
TOUCH(0x0F):u8 fingers, u16 x, u16 y, u16 hold_ms. A finger is held forhold_msand then lifted, or with 0 it stays down until the nextTOUCH, so a drag is a run of them.fingers = 0lifts it. The coordinates are screen pixels (320×240). With flag0x80they are screenshot pixels instead; the firmware maps them through the frame's place on the screen.BoxEmu::touch_pointer(), alongside the touch screen.emulink tap X Y,emulink touch X Y/emulink touch(hold / lift),emulink drag X0 Y0 X1 Y1 --ms 300;--frametakes screenshot pixels.Touch as the mouse in Dark Forces
BoxEmu::touch_pointer(),screen_to_frame(),frame_to_screen()andtouch_gamepad_state(). The last one is always empty on the box; the names match tab5-emu's, so the shared port builds for both.feat/touch-mouse(6ef6cb8).darkforces_forget_block()from tab5-emu. Neither changes the box: the first is Xtensa-guarded, and the box doesn't call the second.Testing
Tried on the box with emulink:
emulink tapon a game in the list selects it.--frame) and screen coordinates. The frame sits 20 px down the 320x240 screen.🤖 Generated with Claude Code
https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY