Jeff Hiner
36bb8faef0
Renamed key_bits to supported_keys, fixed &mut &mut [32] regression
2021-02-22 13:43:58 -07:00
Jeff Hiner
de2c4e026d
Fix a bunch of unsoundness, and clean up some stuff ( #26 )
...
* Fix warnings and remove unsafe code
* Eliminate duplicate structs already in libc; fix incorrect eviocgbit lengths, remove transmute
* Avoid hiding unsafe behind macros; use File rather than libc::open
* Change signatures of eviocgbit and eviocgabs to take slices; use align_to_mut to more safely cast slices
* Replace do_ioctl_buf! with wrapper fn
* Add a sanity check for align_to_mut
* Fix incorrect slice casts, add debug asserts for sanity
* Bump revision
2021-02-22 10:57:25 -07:00
Jeff Hiner
4e700d4671
Edition 2018 ( #25 )
...
* Edition 2018
* cargo fmt
* Bump rev to 0.11.0-alpha-2
* Change FF_MAX and KEY_MAX to associated constants
2021-02-20 19:26:34 -07:00
Jeff Hiner
fe3d0e9ab0
Update dependencies and fix cross-compatibility issues ( #24 )
...
* Update dependencies and fix some cross-compatibility issues
* version 0.11.0-alpha.1
2021-02-20 19:09:39 -07:00
Greg V
e5e7332952
Update nix to 0.9, support FreeBSD
...
nix 0.9's ioctl macro works with buffers now.
2017-12-01 22:44:06 +03:00
Corey Richardson
04761b788f
Bump version to 0.10.1
2017-06-17 09:12:13 -04:00
Corey Richardson
9ff9cf4718
Initial port to nix
2017-05-28 16:05:28 -04:00
Corey Richardson
60a7523d4b
Fix all the current issues:
...
Changes in Rust, changes in the evdev ABI, and a bug
2017-04-27 19:42:45 -04:00
Corey Richardson
ee5bab2689
Bump version
2015-07-21 12:06:18 -04:00
Corey Richardson
704bc42ca3
Yank stable support :(
2015-07-21 05:47:33 -04:00
Corey Richardson
9c72b1ca0b
Version 0.9.0
2015-07-21 05:39:18 -04:00
Corey Richardson
18a063fb17
Use ioctl from crates.io
2015-07-21 05:38:58 -04:00
Corey Richardson
d72c3bc57e
Fix up sync, open, add getters, raw event reading.
2015-07-07 18:31:28 -04:00
Corey Richardson
075d4392f7
[feat] Initial enumeration and querying
2015-05-31 07:41:42 -04:00
Corey Richardson
4978b2a405
Initial commit
2015-05-29 14:57:46 -04:00