File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77- Removed ` FromRawFd ` implementation of ` UinputDevice ` .
88 - Replaced with ` UinputDevice::from_owned_fd ` .
99- Removed ` Evdev::path ` (` Evdev ` no longer stores the path it was opened from).
10- - When using ` enumerate ` , call ` .with_path() ` to have the iterator yield the device path .
10+ - ` enumerate ` and ` enumerate_hotplug ` now yield ` (PathBuf, Evdev) ` .
1111- Removed all ` MAX ` and ` CNT ` constants from event code types.
1212- Shortened lifetime of ` Effect ` s returned by ` ForceFeedbackUpload ` to be tied to ` &self ` .
1313- Remove all ` name ` methods from event code types.
1818
1919- Added ` raw ` and ` from_raw ` functions to all types that wrap an integer and didn't already have them.
2020- Added ` Switch::USB_INSERT ` .
21- - Added ` .with_path() ` combinator to the ` Enumerate ` and ` EnumerateHotplug ` iterators, providing an
22- iterator that yields ` (PathBuf, Evdev) ` instead of just the ` Evdev ` .
21+ - Yield paths alongside devices when enumerating.
2322- Document more clearly that new enumeration constants can be added in minor releases.
23+ - Document the ` evdev ` device lifecycle.
2424- Add a few missing setters to force-feedback types.
2525- ` EventReader::valid_slots ` now returns a real iterator type instead of ` impl Iterator ` .
2626
2727### Fixes
2828
2929- Limit number of reports processed by ` EventReader::update ` , to prevent getting stuck in there forever.
30+ - Made ` enumerate_hotplug() ` more robust, avoiding duplicate devices.
31+ - Don't wrap ` ENODEV ` in a custom error, making it easier to detect unplugged devices.
3032
3133
3234## v0.3.5
You can’t perform that action at this time.
0 commit comments