evdev-rs icon indicating copy to clipboard operation
evdev-rs copied to clipboard

Rust bindings for libevdev

Results 12 evdev-rs issues
Sort by recently updated
recently updated
newest added

Hi `ndesh26/evdev-rs`! This is a one-off automatically generated pull request from LGTM.com :robot:. You might have heard that we’ve integrated LGTM’s underlying CodeQL analysis engine natively into GitHub. The result...

provides compatibility with `smol::Async` for polling from async contexts: ```rust // Setup async device wrapper (configures device file descriptor with `O_NONBLOCK`) let a = smol::Async::new(d)?; // Async poll for the...

Some methods on `DeviceWrapper` should have their signatures changed to use OsStr instead of str. Rust's `&str` must contain valid UTF-8, but Linux filenames are [not necessarily valid UTF-8](https://stackoverflow.com/questions/1976007/what-characters-are-forbidden-in-windows-and-linux-directory-names), rather...

Rust 1.63 stabilised support for AsFd, which has the advantage over AsRawFd of tracking lifetimes for the file descriptor. Consider implementing support for this and possibly deprecating support for AsRawFd....

There is a new event type called ABS_PROFILE in the 6.1 kernel. Could you regenerate the list? Thanks.

Some event codes, when enabled, require additional arguments. For example, the `EV_ABS` EventCodes require an `EnableCodeData::AbsInfo` to be supplied to describe the range of reports from the peripheral. However, `Enable::enable()`...

Can you please add license files to these crates?

On sparc64, suseconds_t is of type i32 while tv_sec is of type time_t which itself is of type i64 which causes the build on sparc64 to fail: error[E0308]: mismatched types...

This is code is used by the OnePlus 6/6T slider. It is not in the mainline kernel but only in postmarketOS sdm845 kernel if I understood correctly. https://gitlab.postmarketos.org/postmarketOS/hkdm/-/merge_requests/6

The `enable_event_code` documentation claims: ```rs /// Forcibly enable an event type on this device, even if the underlying /// device does not support it. While this cannot make the device...