Add web-client pointer-lock mouse capture and serial bridge to MacFriends Arduino#88
Open
Add web-client pointer-lock mouse capture and serial bridge to MacFriends Arduino#88
Conversation
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.
Motivation
Description
AdbSerialBridgetoclient_web/src/ebd_ipkvm_web/app.pywhich discovers/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_*-if00-port0by default (override viaADB_SERIAL_PORT), opens it at115200, and exposesconnect,send_mouse, andclosehelpers.SessionManagerso the serial device is opened on session start and closed on session stop/disconnect, and handle incoming WebSocketmouse_inputmessages by forwarding them to the serial bridge.client_web/src/ebd_ipkvm_web/static/index.htmlto accumulate relativedx/dyand left-button state and sendmouse_inputover the WebSocket (safety mouse-up on unlock).client_web/README.mdanddocs/protocol/adb.md, and add brief entries todocs/agent/log.md,docs/agent/decisions.md, anddocs/agent/notes.mddescribing the change and pointer-lock caveat.Testing
pip install -e .which succeeded.python -m compileall src/ebd_ipkvm_weband successfully importedcreate_appviapython -c "from ebd_ipkvm_web.app import create_app; app=create_app()".struct.calcsize('<bBbbbBBB')to confirm the runtime packet length.python -m ebd_ipkvm_web) and performed a browser smoke check with Playwright to render the UI (server started cleanly and screenshot captured).Codex Task