Narsil / rdev

Simple library to listen and send events to keyboard and mouse (MacOS, Windows, Linux)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please add FreeBSD support

yurivict opened this issue · comments

The code is likely identical to linux.

Hmm, what prevents from running this code ?

This crate is binding against x11 so as far as I'm aware it doesn't care about distros.
Unless something is going on in libc or in the build.rs which is ruining things in FreeBSD ?

The code like this:

#[cfg(target_os = "linux")]
use crate::linux::{display_size as _display_size, listen as _listen, simulate as _simulate};
#[cfg(target_os = "linux")]
pub use crate::linux::{simulate_char, simulate_unicode, Keyboard};

which doesn't have "freebsd" counterparts.

X11 is exactly identical in linux and *BSDs, so that the mod name should probably be called linux_or_bsd.