Windows port of fcxd, in Zig#3
Open
dokson wants to merge 2 commits into
Open
Conversation
Pure-Zig Windows backend (mouse, keyboard, system_info) exporting the fcx_* C ABI over Win32 SendInput, plus a Windows entry point that drives the Zig Runner with its own stdio. No C sources or json-c on Windows. - build.zig: a Windows branch (links user32/advapi32); Linux/mac untouched. - Keyboard symbols match the app's set (ToolsLive); brightness has no SendInput virtual-key on Windows and stays unsupported. - Tests: inline Zig unit tests + a NUL-framed integration smoke test. - CI: a separate fcxd.yml workflow builds and tests on windows-latest.
From a zig-programming audit of the runner: - a bad request (unknown command / bad params / bad envelope) no longer kills the driver: it gets an error reply and the loop carries on; only OOM stays fatal. - ignore_all is acknowledged with ok, not "command not implemented". - every module's tests now run (the build ran only a few); add Runner happy-path + multi-request framing coverage; CI prints the summary.
8a7167b to
2151ff6
Compare
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.
Windows port of fcxd. Pure Zig. Built on zig-impl (its platform layer is already Zig-runner-based).
No C, no json-c on Windows.
fcx_*C ABI.build.zig: Windows branch (links user32/advapi32). Linux/mac untouched.fcxd.yml, builds + tests on windows-latest. Green.Left out: brightness (no SendInput virtual-key on Windows); apps (
ui_apps/apps_observe) still "not implemented", same as the Zig Runner.Windows reigns :)