Skip to content

Commit c3b84f8

Browse files
committed
Introduce CursorType and add it to CursorMoved::type
- This adds pen/stylus support. - Move `Force::Calibrated::altitude_angle` to `ToolAngle::altitude`. - `Force::normalized()` now takes a `Option<ToolAngle>` to calculate the perpendicular force. - Just introducing types, no implementation yet!
1 parent cb0874a commit c3b84f8

File tree

16 files changed

+387
-60
lines changed

16 files changed

+387
-60
lines changed

docs/res/ATTRIBUTION.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ by [Tomiĉo] (https://commons.wikimedia.org/wiki/User:Tomi%C4%89o). It was
99
originally released under the [CC-BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/deed.en)
1010
License. Minor modifications have been made by [John Nunley](https://github.com/notgull),
1111
which have been released under the same license as a derivative work.
12+
13+
## tool_*.webp
14+
15+
These files are converted versions of
16+
[W3C Pointer Events spec images](https://github.com/w3c/pointerevents/tree/93938ae7fe0172e2ae7587ad7d7c4fc8562d7153/images)
17+
by [patrickhlauke](https://github.com/patrickhlauke). It is licensed under the
18+
[W3C Software and Document License](https://www.w3.org/copyright/software-license).

docs/res/tool_altitude.webp

75.8 KB
Loading

docs/res/tool_azimuth.webp

80.7 KB
Loading

docs/res/tool_tilt_x.webp

76.6 KB
Loading

docs/res/tool_tilt_y.webp

78.2 KB
Loading

src/changelog/unreleased.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ changelog entry.
4444

4545
- Add `ActiveEventLoop::create_proxy()`.
4646
- On Web, implement `Error` for `platform::web::CustomCursorError`.
47+
- Add `CursorMoved::type` with a new type `CursorType` introducing pen/stylus support.
4748

4849
### Changed
4950

@@ -70,6 +71,7 @@ changelog entry.
7071
- Change signature of `EventLoop::run_app`, `EventLoopExtPumpEvents::pump_app_events` and
7172
`EventLoopExtRunOnDemand::run_app_on_demand` to accept a `impl ApplicationHandler` directly,
7273
instead of requiring a `&mut` reference to it.
74+
- `Force::normalized()` now takes a `Option<ToolAngle>` to calculate the perpendicular force.
7375

7476
### Removed
7577

@@ -82,6 +84,7 @@ changelog entry.
8284
This feature was incomplete, and the equivalent functionality can be trivially achieved outside
8385
of `winit` using `objc2-ui-kit` and calling `UIDevice::currentDevice().userInterfaceIdiom()`.
8486
- On Web, remove unused `platform::web::CustomCursorError::Animation`.
87+
- Remove `Force::Calibrated::altitude_angle` in favor of `ToolAngle::altitude`.
8588

8689
### Fixed
8790

0 commit comments

Comments
 (0)