mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-29 12:17:14 -06:00
Linux stylus: drop generic Other(10|11) right-click remap
Review: X11 codes 10/11 are not stylus-specific; Wacom X11 already maps barrel to middle/right. Co-authored-by: nrq6993-a11y <nrq6993-a11y@users.noreply.github.com>
This commit is contained in:
committed by
bflatastic
co-authored by
nrq6993-a11y
parent
b37522bbb3
commit
06790288e1
@@ -77,8 +77,6 @@ pub(crate) fn map_tablet_button(code: u16) -> Option<winit::event::MouseButton>
|
||||
match code {
|
||||
BTN_STYLUS | BTN_STYLUS2 => Some(MouseButton::Right),
|
||||
BTN_STYLUS3 => Some(MouseButton::Middle),
|
||||
// XInput2 on X11 often numbers the first barrel button 10 or 11.
|
||||
10 | 11 => Some(MouseButton::Right),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user