D | test_tablet.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 25 UP = False variable in BtnTouch 29 PEN = libevdev.EV_KEY.BTN_TOOL_PEN variable in ToolType 42 """Pen states according to Microsoft reference: 43 https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states 48 PEN_IS_OUT_OF_RANGE = BtnTouch.UP, None, False 49 PEN_IS_IN_RANGE = BtnTouch.UP, ToolType.PEN, False 50 PEN_IS_IN_RANGE_WITH_BUTTON = BtnTouch.UP, ToolType.PEN, True 51 PEN_IS_IN_CONTACT = BtnTouch.DOWN, ToolType.PEN, False [all …]
|