Debian Codegraph @

CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 ## evdev next
4 [6aed780...HEAD](https://github.com/emberian/evdev/compare/7cbae16...HEAD)
5
6 ### Added
7
8 ### Changed
9
10 ### Fixed
11
12 ## evdev 0.13.1 (2025-03-31)
13 [7cbae16...6aed780](https://github.com/emberian/evdev/compare/7cbae16...6aed780)
14
15 ### Added
16 - `Device::is_grabbed() -> bool`
17
18 ### Changed
19 - `Device` now implements `Debug`.
20 - `Device` now calls `ungrab()` on Drop.
21
22 ### Fixed
23
24 ## evdev 0.13.0 (2025-01-22)
25 [02aef0c...5a5ec3c](https://github.com/emberian/evdev/compare/02aef0c...5a5ec3c)
26
27 ### Added
28 - Create a `...Event` struct for each `EventType` to hold the `InputEvent`
29 - Guarantee that each `...Event` struct can only hold a `InputEvent` of the corresponding `EventType`
30 - Demonstrate what the `FFEvent` does in the `force_feedback` example.
31
32 - `Device`, `RawDevice`, and `VirtualDevice` now implement `AsFd`.
33 - `VirtualDevice::builder()` as an alias for `VirtualDeviceBuilder::new()`
34 - `VirtualDeviceBuilder::new()` is now deprecated.
35
36 ### Changed
37 - Removed the `evdev::Error` type - fallible functions now just return `io::Error`.
38 - Consistent naming and structure of all new-types for event-codes
39 - Some of them where previously named `...Type` now they are all named `...Code`
40 - Rename `InputEventKind` to `EventSummary`
41 - Created missing `EventSummary` variants. I know some of them are kind of unused but it is less confusing if they are all there and look the same.
42 - Each variant of the `EventSummary` enum now has the structure `Variant(...Event, ...Type, value)`
43 - Renamed `Key` struct (the one with all the Key constants) to `KeyCode` to keep the naming consistent!
44 - Rename `InputEvent::kind` to `InputEvent::destructure` this now returns a `EventSummary`
45 - `InputEvent::new` no longer takes the `EventType` but `u16` as first argument. If the `EventType` is known we can directly construct the correct variant.
46 - Ensure the unsafe code still does what we expect.
47 - Update the Examples.
48
49 - The minimum supported rust version (MSRV) is now `1.63`, due to `AsFd` support.
50 - In order for the `EventStream` types to implement Stream, the `stream-trait`
51 feature must now be specified.
52 - `FFEffect` and `AutoRepeat` are now defined in the root of the crate instead of in `raw_stream`.
53 - `VirtualDeviceBuilder::with_phys` now accepts a `&CStr` instead of a `&str`.
54
55 ### Fixed
56 - Update `VirtualDevice::fetch_events` to yield `InputEvent`s instead of `UInputEvent`s. That was a bug which was not accounted for be the type system. Yielding `UInputEvent`s there will now panic.
57
58 ## evdev 0.12.2 (2024-05-08)
59 [8fc58e1...af3c9b3](https://github.com/emberian/evdev/compare/8fc58e1...af3c9b3)
60
61 ### Added
62
63 - `&AttributeSetRef` and `&mut AttributeSetRef` now implement `Default`.
64 - `&AttributeSetRef` now implements `IntoIterator`.
65 - `AttributeSet` now implements `FromIterator<&T>`.
66
67 ### Changed
68
69 ### Fixed
70 - `enumerate_dev_nodes[_blocking]` now always returns a path to a file in `/dev/input`
71
72 ## evdev 0.12.1 (2022-12-09)
73 [86dfe33...8fc58e1](https://github.com/emberian/evdev/compare/86dfe33...8fc58e1)
74
75 ### Added
76
77 - Add `Device::max_ff_effects()` to return the maximum number of force feedback effects that can be played simultaneously.
78 - Add support for `EV_MSC` (miscellaneous events) to `VirtualDeviceBuilder`.
79 - Add support for device properties to `VirtualDeviceBuilder`.
80
81 ### Changed
82
83 - Examples now show the device path of the virtual device.
84
85 ### Fixed
86
87 - Avoid infinite loop in `DevNodes::next_entry()`.
88 - Fix issue on 32-bit platforms where `tv_sec` (`time_t`) is 32-bit.
89 - Fix documentation links.
90 - Document all the features (on docs.rs).
91
92 ## evdev 0.12.0 (2022-08-17)
93 [c0bd8dd...86dfe33](https://github.com/emberian/evdev/compare/c0bd8dd...86dfe33)
94
95 ### Added
96
97 - Document `FFEffect`.
98 - Publicly export `FFEffect` from root.
99 - Add `FFEffect::id()` as an accessor for the effect ID.
100 - Add missing `EventStream::device_mut()` in `sync_stream.rs`.
101
102 ### Changed
103
104 ### Fixed
105
106 - Make sure that the `DevNodesBlocking` iterator is not blocking indefinitely when all entries in the directory have been exhausted.
107 - Fix incorrect cast in `eviocrmff` to support 32-bit platforms [#82](https://github.com/emberian/evdev/pull/82).
108 - FreeBSD support [#88](https://github.com/emberian/evdev/pull/88).
109
110 ## evdev 0.11.6 (2022-08-03)
111 [372d000...c0bd8dd](https://github.com/emberian/evdev/compare/372d000...c0bd8dd)
112
113 ### Added
114
115 - Add a `CHANGELOG.md` with a changelog for each new release.
116 - Force feedback support [#74](https://github.com/emberian/evdev/pull/74).
117 - Implement serde support for `evdev_enum!` types and `InputEventKind` [#76](https://github.com/emberian/evdev/pull/76).
118 - Implement `VirtualDevice::get_sys_path()` as well as an iterator over the device node paths for virtual devices [#72](https://github.com/emberian/evdev/pull/72).
119 - Implement an `Error` type [#75](https://github.com/emberian/evdev/pull/75).
120 - Add `EventStream::device_mut()` to get a mutable reference to `RawDevice` [#73](https://github.com/emberian/evdev/pull/73).
121 - Add support for absolute axes for virtual devices [#71](https://github.com/emberian/evdev/pull/71).
122
123 ### Changed
124
125 ### Fixed
126
127 - Documentation and code tidying [#67](https://github.com/emberian/evdev/pull/67).
128
129 ## evdev 0.11.5 (2022-03-05)
130 [099b6e9...372d000](https://github.com/emberian/evdev/compare/099b6e9...372d000)
131
132 ### Added
133
134 - Introduce `RawDevice::sys_path` and `Device::sys_path` [#62](https://github.com/emberian/evdev/pull/62).
135 - Implement `FromIterator` for `AttributeSet`.
136
137 ### Changed
138
139 ### Fixed
140
141 ## evdev 0.11.4 (2022-01-12)
142 [1d020f1...099b6e9](https://github.com/emberian/evdev/compare/1d020f1...099b6e9)
143
144 ### Added
145
146 ### Changed
147
148 - Update bitvec to 1.0.
149
150 ### Fixed
151
152 ## evdev 0.11.3 (2021-12-07)
153 [898bb5c...1d020f1](https://github.com/emberian/evdev/compare/898bb5c...1d020f1)
154
155 ### Added
156
157 - Introduce `RawDevice::send_event` and `Device::send_event` to toggle LEDs, play sounds and play force feedback effects [#60](https://github.com/emberian/evdev/pull/60).
158
159 ### Changed
160
161 ### Fixed
162
163 - Fix a bug in `compensate_events` where it returned the same event when invoking `next()` multiple times [#61](https://github.com/emberian/evdev/pull/61).
164
165 ## evdev 0.11.2 (2021-12-03)
166 [763ef01...898bb5c](https://github.com/emberian/evdev/compare/763ef01...898bb5c)
167
168 ### Added
169
170 ### Changed
171
172 - Update bitvec to 1.0.0-rc1.
173
174 ### Fixed
175
176 ## evdev 0.11.1 (2021-10-08)
177 [1898f49...763ef01](https://github.com/emberian/evdev/compare/1898f49...763ef01)
178
179 ### Added
180
181 - Implement `Device::grab` and `Device::ungrab`
182 - Implement `VirtualDeviceBuilder::with_switches`.
183 - Support autorepeats and getting keymap entries.
184
185 ### Changed
186
187 - Update nix to 0.23.
188
189 ### Fixed
190
191 ## evdev 0.11.0 (2021-04-01)
192 [79b6c2b...1898f49](https://github.com/emberian/evdev/compare/79b6c2b...1898f49)