You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
422 B
21 lines
422 B
4 years ago
|
# -*- coding: utf-8 -*-
|
||
|
from collections import namedtuple
|
||
|
|
||
|
LEFT = 'left'
|
||
|
RIGHT = 'right'
|
||
|
MIDDLE = 'middle'
|
||
|
WHEEL = 'wheel'
|
||
|
X = 'x'
|
||
|
X2 = 'x2'
|
||
|
|
||
|
UP = 'up'
|
||
|
DOWN = 'down'
|
||
|
DOUBLE = 'double'
|
||
|
VERTICAL = 'vertical'
|
||
|
HORIZONTAL = 'horizontal'
|
||
|
|
||
|
|
||
|
ButtonEvent = namedtuple('ButtonEvent', ['event_type', 'button', 'time'])
|
||
|
WheelEvent = namedtuple('WheelEvent', ['delta', 'time'])
|
||
|
MoveEvent = namedtuple('MoveEvent', ['x', 'y', 'time'])
|