winit/examples
daxpedda eccd9e415d
api: overhaul pointer API
- Rename `CursorMoved` to `PointerMoved`.
- Rename `CursorEntered` to `PointerEntered`.
- Rename `CursorLeft` to `PointerLeft`.
- Rename `MouseInput` to `PointerButton`.
- Add `position` to every `PointerEvent`.
- Remove `Touch`, which is folded into the `Pointer*` events.
- New `PointerType` added to `PointerEntered` and `PointerLeft`,
  signifying which pointer type is the source of this event.
- New `PointerSource` added to `PointerMoved`, similar to `PointerType`
  but holding additional data.
- New `ButtonSource` added to `PointerButton`, similar to `PointerType`
  but holding pointer type specific buttons. Use
  `ButtonSource::mouse_button()` to easily normalize any pointer button
  type to a generic mouse button.
- In the same spirit rename `DeviceEvent::MouseMotion` to `PointerMotion`.
- Remove `Force::Calibrated::altitude_angle`.

Fixes #3833.
Fixes #883.
Fixes #336.

Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
2024-10-08 15:19:00 +03:00
..
data Deprecate window creation with stale event loop 2024-02-21 14:44:29 +04:00
util Rename "inner size" to "surface size" (#3889) 2024-09-04 15:04:48 +02:00
child_window.rs api: overhaul pointer API 2024-10-08 15:19:00 +03:00
control_flow.rs api: convert Window to dyn Window 2024-08-23 23:40:27 +03:00
pump_events.rs api: convert Window to dyn Window 2024-08-23 23:40:27 +03:00
run_on_demand.rs Rename "inner size" to "surface size" (#3889) 2024-09-04 15:04:48 +02:00
window.rs api: overhaul pointer API 2024-10-08 15:19:00 +03:00
x11_embed.rs Rename "inner size" to "surface size" (#3889) 2024-09-04 15:04:48 +02:00