Remove NamedInts: Convert ActionId to enum
This data is not in use currently. Related #2273
This commit is contained in:
parent
5ca9c0a6ba
commit
7c91d0b2db
|
|
@ -691,22 +691,21 @@ class SpecGesture(IntEnum):
|
||||||
return f"{self.name.replace('_', ' ').lower()}"
|
return f"{self.name.replace('_', ' ').lower()}"
|
||||||
|
|
||||||
|
|
||||||
# Action Ids for feature GESTURE_2
|
class ActionId(IntEnum):
|
||||||
ACTION_ID = common.NamedInts(
|
"""Action IDs for feature GESTURE_2."""
|
||||||
MovePointer=1,
|
|
||||||
ScrollHorizontal=2,
|
MOVE_POINTER = 1
|
||||||
WheelScrolling=3,
|
SCROLL_HORIZONTAL = 2
|
||||||
ScrollVertial=4,
|
WHEEL_SCROLLING = 3
|
||||||
ScrollOrPageXY=5,
|
SCROLL_VERTICAL = 4
|
||||||
ScrollOrPageHorizontal=6,
|
SCROLL_OR_PAGE_XY = 5
|
||||||
PageScreen=7,
|
SCROLL_OR_PAGE_HORIZONTAL = 6
|
||||||
Drag=8,
|
PAGE_SCREEN = 7
|
||||||
SecondaryDrag=9,
|
DRAG = 8
|
||||||
Zoom=10,
|
SECONDARY_DRAG = 9
|
||||||
ScrollHorizontalOnly=11,
|
ZOOM = 10
|
||||||
ScrollVerticalOnly=12,
|
SCROLL_HORIZONTAL_ONLY = 11
|
||||||
)
|
SCROLL_VERTICAL_ONLY = 12
|
||||||
ACTION_ID._fallback = lambda x: f"unknown:{x:04X}"
|
|
||||||
|
|
||||||
|
|
||||||
class Gesture:
|
class Gesture:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue