Skip to content

feat(linux): platform support#8

Open
dcondrey wants to merge 4 commits intolete114:mainfrom
dcondrey:feat/linux-support
Open

feat(linux): platform support#8
dcondrey wants to merge 4 commits intolete114:mainfrom
dcondrey:feat/linux-support

Conversation

@dcondrey
Copy link
Copy Markdown

@dcondrey dcondrey commented Feb 4, 2026

I had something similar in my own project witnessd so I ported the relevant code.

Module Backend Access
Core evdev + poll() -
Listen /dev/input/event* +r
Simulate /dev/uinput +rw
Display x11rb (xrandr,xfixes) -
Grab API stub -

- Add evdev for input event capture from /dev/input/event* devices
- Add uinput for input event simulation via /dev/uinput
- Add x11rb for display information via RandR extension
- Implement Core, Listen, Grab, Simulate, and Display traits
- Support keyboard and mouse events (move, wheel, buttons)
- Add evdev keycode mappings for standard keyboard keys
- Fix incorrect error type in core.rs (use LinuxKeyboardError for /dev/input access)
- Fix Xft.dpi lookup in display.rs to properly parse RESOURCE_MANAGER property
- Add error checking for uinput ioctl calls in simulate.rs
- Add documentation comment about grab implementation limitations
@lete114
Copy link
Copy Markdown
Owner

lete114 commented Mar 26, 2026

I'm sorry, but I haven't received any email notifications from GitHub.

I didn't see it until today when I was getting ready to update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants