Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 11 Jan 19:20
· 16 commits to main since this release

Breaking Changes

  • Removed FromRawFd implementation of UinputDevice.
    • Replaced with UinputDevice::from_owned_fd.
  • Removed Evdev::path (Evdev no longer stores the path it was opened from).
    • enumerate and enumerate_hotplug now yield (PathBuf, Evdev).
  • Removed all MAX and CNT constants from event code types.
  • Shortened lifetime of Effects returned by ForceFeedbackUpload to be tied to &self.
  • Remove all name methods from event code types.
    • Codes can instead be formatted via Debug or serialized with serde to obtain the name.
  • Removed all deprecated functionality.

Improvements

  • Added raw and from_raw functions to all types that wrap an integer and didn't already have them.
  • Added Switch::USB_INSERT.
  • Yield paths alongside devices when enumerating.
  • Document more clearly that new enumeration constants can be added in minor releases.
  • Document the evdev device lifecycle.
  • Add a few missing setters to force-feedback types.
  • EventReader::valid_slots now returns a real iterator type instead of impl Iterator.

Fixes

  • Limit number of reports processed by EventReader::update, to prevent getting stuck in there forever.
  • Made enumerate_hotplug() more robust, avoiding duplicate devices.
  • Don't wrap ENODEV in a custom error, making it easier to detect unplugged devices.