From 8034c88f8be74f4ec1402e67d762d6c76cca5f76 Mon Sep 17 00:00:00 2001 From: Harald Date: Tue, 27 Oct 2026 15:44:42 +0100 Subject: [PATCH] fix(windows): don't let Windows Ink report the mouse as a pen (Issue #48) octotablet's default emulates a pen tool from the mouse on Windows Ink, so every mouse move counted as pen hover and every click as pen down, while the regular mouse events were ignored as duplicates. Co-Authored-By: Claude Opus 5.5 --- src/app.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index e718bdd..a666a34 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1304,7 +1304,11 @@ pub fn run_with( // registered); the app then runs with mouse and touch events only #[cfg(not(target_os = "android"))] let tablet_result = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| { - octotablet::builder::Builder::default().build_shared(&window) + // Windows Ink would otherwise report the mouse as a pen (Issue #48): every mouse + // move counted as pen hover, every click as pen down next to the normal mouse events + octotablet::builder::Builder::default() + .emulate_tool_from_mouse(false) + .build_shared(&window) })); #[cfg(not(target_os = "android"))] let mut tablet_manager = match tablet_result {