Skip to content

feat(computers): send pointer movement while driving a computer - #492

Merged
edenreich merged 1 commit into
mainfrom
feat/take-over-pointer-move
Nov 10, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/take-over-pointer-move

Conversation

@edenreich

@edenreich edenreich commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Take over sent clicks, the wheel and keys, but never where the pointer was. Hover did nothing on the computer, and its own pointer in the picture only jumped on a click. Moving the mouse over a taken-over screen now sends a move input, which the CLI already accepts.

Changes

  • frontend/components/ComputersView.tsx - the driven screen handles mousemove and sends a move at the pointer's position on the frame. Moves go through the same queue as clicks and keys, so their order is kept.
  • frontend/lib/screen-input.ts - ScreenInput gains the move kind, and latestOnly holds only the newest position. A pointer moves far more often than an input can be sent, so the moves that pile up while one is in flight collapse into the latest.
  • frontend/lib/screen-input.test.ts - a test for latestOnly.

Notes

Affected repos: desktop only. Docs follow-up: inference-gateway/docs#1171.

@edenreich
edenreich marked this pull request as ready for review November 10, 2026 00:14
@edenreich
edenreich merged commit 40d1614 into main Nov 10, 2026
1 check passed
@edenreich
edenreich deleted the feat/take-over-pointer-move branch November 10, 2026 00:14
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.64.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-maintainer inference-gateway-maintainer Bot added the released Shipped in a release label Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant