diff options
Diffstat (limited to 'src')
| -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 |
