winit/src/platform_impl/web
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
..
async Web: Implement MonitorHandle (#3801) 2024-07-23 20:33:10 +02:00
event_loop api: overhaul pointer API 2024-10-08 15:19:00 +03:00
script Web: bump ESLint to v9 (#3843) 2024-07-31 20:37:10 +02:00
web_sys api: overhaul pointer API 2024-10-08 15:19:00 +03:00
cursor.rs Update minimum version of wasm-bindgen (#3860) 2024-08-13 21:54:03 +02:00
error.rs Fix web errors (#1040) 2019-07-10 18:54:54 -04:00
event.rs api: overhaul pointer API 2024-10-08 15:19:00 +03:00
keyboard.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
lock.rs Web: Implement MonitorHandle (#3801) 2024-07-23 20:33:10 +02:00
main_thread.rs Web: improve custom cursor handling and add animated cursors (#3384) 2024-01-12 11:51:19 +01:00
mod.rs api: unify error handling 2024-09-06 17:20:11 +03:00
monitor.rs api: convert Window to dyn Window 2024-08-23 23:40:27 +03:00
window.rs api: remove ::dummy from Id types 2024-09-29 16:49:45 +03:00