Repository navigation
Conversation
…r, no cursor broadcast
…bout, applied live
Author
|
I see #17 is also adding Windows support, opened a few hours before this one. I did not know about it when I started. They take different approaches. #17 uses Tauri with a shared @nilbuild, your call: pick one, or I am happy to work with the #17 author to combine them, for example their core and installer with the Windows input and overlay layer from here. I will keep this as a draft until you say which way you prefer. |
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.
Summary
This adds a Windows version of TinyHand in a new
windows/folder. It is written in Rust and does the same thing as the Mac app: a tiny hand on a stick follows the cursor, a click taps, a drag draws, and a toolbar picks one of the 36 hands or the laser. It uses the same hand images, tap sounds and logo from this repo, so there is no duplicated art.The Mac code is not touched. Outside
windows/the PR changes only:README.md: Windows line, badge, and a Windows column in the Use table..github/workflows/build.yml: a Windows build job next to the Mac one..github/workflows/release-windows.yml: builds and publishes a zip when awindows-v*tag is pushed. It does not match the Macv*tags.Why Rust
The Windows version needs a low-level mouse hook, a transparent click-through overlay that redraws in step with the display, and very little CPU when idle. Rust gives that with no runtime to install and a small, fast exe. The Win32 API is used through the
windowscrate, drawing is done withtiny-skia, and sound goes through WASAPI. The settings window is a WebView2 page (viawry) that is created when you open Settings and destroyed when you close it, so it costs nothing while closed.What is in it
windows/README.mdhas the build steps, how the code is laid out, what differs from the Mac app, and known limits.Try it
You need Rust (stable) and the MSVC build tools with the Windows SDK.
Press Ctrl+Alt+H, or click the tray icon, to turn the pointer on. A preview build is also available as a pre-release on my fork:
https://github.com/MUL7ii/tinyhand/releases/tag/windows-v0.1.0
Testing
windows-latestand passed (build, package, publish).Not done yet
assets/folder next to the exe (the release zip includes it). Embedding them in the exe is a possible follow-up.Known limits
Notes for review
windows/Cargo.lock, mostly from the web view used for settings). If that is too heavy for this repo, I can move the Windows version to its own repository and link it from the README instead. Happy to do either.