Constants and Enumerations

class libinput.constant.LogPriority(*args, **kwds)
DEBUG = 10
INFO = 20
ERROR = 30
class libinput.constant.ContextType(*args, **kwds)
PATH = 1
UDEV = 2
class libinput.constant.EventType(*args, **kwds)
NONE = 0
DEVICE_ADDED = 1
DEVICE_REMOVED = 2
KEYBOARD_KEY = 300
POINTER_MOTION = 400
POINTER_MOTION_ABSOLUTE = 401
POINTER_BUTTON = 402
POINTER_AXIS = 403
TOUCH_DOWN = 500
TOUCH_UP = 501
TOUCH_MOTION = 502
TOUCH_CANCEL = 503
TOUCH_FRAME = 504
TABLET_TOOL_AXIS = 600
TABLET_TOOL_PROXIMITY = 601
TABLET_TOOL_TIP = 602
TABLET_TOOL_BUTTON = 603
TABLET_PAD_BUTTON = 700
TABLET_PAD_RING = 701
TABLET_PAD_STRIP = 702
GESTURE_SWIPE_BEGIN = 800
GESTURE_SWIPE_UPDATE = 801
GESTURE_SWIPE_END = 802
GESTURE_PINCH_BEGIN = 803
GESTURE_PINCH_UPDATE = 804
GESTURE_PINCH_END = 805
SWITCH_TOGGLE = 900
is_device()

Macro to check if this event is a DeviceNotifyEvent.

is_keyboard()

Macro to check if this event is a KeyboardEvent.

is_pointer()

Macro to check if this event is a PointerEvent.

is_touch()

Macro to check if this event is a TouchEvent.

is_tablet_tool()

Macro to check if this event is a TabletToolEvent.

is_tablet_pad()

Macro to check if this event is a TabletPadEvent.

is_gesture()

Macro to check if this event is a GestureEvent.

is_switch()

Macro to check if this event is a SwitchEvent.

class libinput.constant.DeviceCapability(*args, **kwds)
KEYBOARD = 0
POINTER = 1
TOUCH = 2
TABLET_TOOL = 3
TABLET_PAD = 4
GESTURE = 5
SWITCH = 6
class libinput.constant.KeyState(*args, **kwds)
RELEASED = 0
PRESSED = 1
class libinput.constant.Led(*args, **kwds)
NUM_LOCK = 1
CAPS_LOCK = 2
SCROLL_LOCK = 4
class libinput.constant.ButtonState(*args, **kwds)
RELEASED = 0
PRESSED = 1
class libinput.constant.PointerAxis(*args, **kwds)
SCROLL_VERTICAL = 0
SCROLL_HORIZONTAL = 1
class libinput.constant.PointerAxisSource(*args, **kwds)
NONE = 0
WHEEL = 1
FINGER = 2
CONTINUOUS = 3
WHEEL_TILT = 4
class libinput.constant.TabletPadRingAxisSource(*args, **kwds)
UNKNOWN = 1
FINGER = 2
class libinput.constant.TabletPadStripAxisSource(*args, **kwds)
UNKNOWN = 1
FINGER = 2
class libinput.constant.TabletToolType(*args, **kwds)
PEN = 1
ERASER = 2
BRUSH = 3
PENCIL = 4
AIRBRUSH = 5
MOUSE = 6
LENS = 7
class libinput.constant.TabletToolProximityState(*args, **kwds)
OUT = 0
IN = 1
class libinput.constant.TabletToolTipState(*args, **kwds)
UP = 0
DOWN = 1
class libinput.constant.SwitchState(*args, **kwds)
OFF = 0
ON = 1
class libinput.constant.Switch(*args, **kwds)
LID = 1
class libinput.constant.ConfigStatus(*args, **kwds)
SUCCESS = 0
UNSUPPORTED = 1
INVALID = 2
class libinput.constant.TapState(*args, **kwds)
DISABLED = 0
ENABLED = 1
class libinput.constant.TapButtonMap(*args, **kwds)
LRM = 0
LMR = 1
class libinput.constant.DragState(*args, **kwds)
DISABLED = 0
ENABLED = 1
class libinput.constant.DragLockState(*args, **kwds)
DISABLED = 0
ENABLED = 1
class libinput.constant.SendEventsMode(*args, **kwds)
ENABLED = 0
DISABLED = 1
DISABLED_ON_EXTERNAL_MOUSE = 2
class libinput.constant.AccelProfile(*args, **kwds)
NONE = 0
FLAT = 1
ADAPTIVE = 2
class libinput.constant.ClickMethod(*args, **kwds)
NONE = 0
BUTTON_AREAS = 1
CLICKFINGER = 2
class libinput.constant.MiddleEmulationState(*args, **kwds)
DISABLED = 0
ENABLED = 1
class libinput.constant.ScrollMethod(*args, **kwds)
NO_SCROLL = 0
SCROLL_2FG = 1
EDGE = 2
ON_BUTTON_DOWN = 4
class libinput.constant.DwtState(*args, **kwds)
DISABLED = 0
ENABLED = 1