From 675932c05b6c9a99c7d7403f66b2d31b0fd99933 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 9 Dec 2023 09:30:56 +0400 Subject: Document compute_tablet_position() --- src/input.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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( - &mut self, + &self, event: &(impl Event + TabletToolEvent), ) -> Option> where -- cgit