Skip to content

Commit a395f2a

Browse files
committed
changelog: add device pointer button to pointer overhaul entry
1 parent b6c2045 commit a395f2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

winit/src/changelog/unreleased.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ changelog entry.
168168
type to a generic mouse button.
169169
- New `FingerId` added to `PointerKind::Touch` and `PointerSource::Touch` able to uniquely
170170
identify a finger in a multi-touch interaction. Replaces the old `Touch::id`.
171-
- In the same spirit rename `DeviceEvent::MouseMotion` to `PointerMotion`.
171+
- In the same spirit rename `DeviceEvent::MouseMotion` and `DeviceEvent::Button` to
172+
`PointerMotion` and `PointerButton` respectively.
173+
- New `DeviceButtonSource` added to `DeviceEvent::PointerButton`, similar to `ButtonSource`.
174+
The `button` field from `DeviceEvent::Button` has been renamed to `button_id`.
175+
- `button_id` will **always** be `0` on Windows. Use `DeviceButtonSource` instead.
172176
- Remove `Force::Calibrated::altitude_angle`.
173177
- On X11, use bottom-right corner for IME hotspot in `Window::set_ime_cursor_area`.
174178
- On macOS and iOS, no longer emit `ScaleFactorChanged` upon window creation.

0 commit comments

Comments
 (0)