diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-12-09 09:30:56 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-12-09 09:30:56 +0400 |
| commit | 675932c05b6c9a99c7d7403f66b2d31b0fd99933 (patch) | |
| tree | aa453662b96d3cba31c0827115bbdbaadfd868d0 | |
| parent | 475d6e4be177b74c23ba225d7cdf6ec30826a374 (diff) | |
| download | niri-675932c05b6c9a99c7d7403f66b2d31b0fd99933.tar.gz niri-675932c05b6c9a99c7d7403f66b2d31b0fd99933.tar.bz2 niri-675932c05b6c9a99c7d7403f66b2d31b0fd99933.zip | |
Document compute_tablet_position()
| -rw-r--r-- | src/input.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/input.rs b/src/input.rs index 292d08bc..08cb5f46 100644 --- a/src/input.rs +++ b/src/input.rs @@ -140,8 +140,12 @@ impl State { } } + /// Computes the cursor position for the tablet event. + /// + /// This function handles the tablet output mapping, as well as coordinate clamping and aspect + /// ratio correction. fn compute_tablet_position<I: InputBackend>( - &mut self, + &self, event: &(impl Event<I> + TabletToolEvent<I>), ) -> Option<Point<f64, Logical>> where |
