Constants and Enumerations

class libinput.constant.LogPriority

An enumeration.

DEBUG = 10
INFO = 20
ERROR = 30
class libinput.constant.ContextType

An enumeration.

PATH = 1
UDEV = 2
class libinput.constant.EventType

An enumeration.

DEVICE_ADDED = 1
DEVICE_REMOVED = 2
KEYBOARD_KEY = 300
POINTER_MOTION = 400
POINTER_MOTION_ABSOLUTE = 401
POINTER_BUTTON = 402
POINTER_AXIS = 403
POINTER_SCROLL_WHEEL = 404
POINTER_SCROLL_FINGER = 405
POINTER_SCROLL_CONTINUOUS = 406
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
GESTURE_HOLD_BEGIN = 806
GESTURE_HOLD_END = 807
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

An enumeration.

KEYBOARD = 0
POINTER = 1
TOUCH = 2
TABLET_TOOL = 3
TABLET_PAD = 4
GESTURE = 5
SWITCH = 6
class libinput.constant.KeyState

An enumeration.

RELEASED = 0
PRESSED = 1
class libinput.constant.Led

An enumeration.

NUM_LOCK = 1
CAPS_LOCK = 2
SCROLL_LOCK = 4
class libinput.constant.ButtonState

An enumeration.

RELEASED = 0
PRESSED = 1
class libinput.constant.PointerAxis

An enumeration.

SCROLL_VERTICAL = 0
SCROLL_HORIZONTAL = 1
class libinput.constant.PointerAxisSource

An enumeration.

NONE = 0
WHEEL = 1
FINGER = 2
CONTINUOUS = 3
WHEEL_TILT = 4
class libinput.constant.TabletPadRingAxisSource

An enumeration.

UNKNOWN = 1
FINGER = 2
class libinput.constant.TabletPadStripAxisSource

An enumeration.

UNKNOWN = 1
FINGER = 2
class libinput.constant.TabletToolType

An enumeration.

PEN = 1
ERASER = 2
BRUSH = 3
PENCIL = 4
AIRBRUSH = 5
MOUSE = 6
LENS = 7
class libinput.constant.TabletToolProximityState

An enumeration.

OUT = 0
IN = 1
class libinput.constant.TabletToolTipState

An enumeration.

UP = 0
DOWN = 1
class libinput.constant.SwitchState

An enumeration.

OFF = 0
ON = 1
class libinput.constant.Switch

An enumeration.

LID = 1
class libinput.constant.ConfigStatus

An enumeration.

SUCCESS = 0
UNSUPPORTED = 1
INVALID = 2
class libinput.constant.TapState

An enumeration.

DISABLED = 0
ENABLED = 1
class libinput.constant.TapButtonMap

An enumeration.

LRM = 0
LMR = 1
class libinput.constant.DragState

An enumeration.

DISABLED = 0
ENABLED = 1
class libinput.constant.DragLockState

An enumeration.

DISABLED = 0
ENABLED = 1
class libinput.constant.SendEventsMode

An enumeration.

ENABLED = 0
DISABLED = 1
DISABLED_ON_EXTERNAL_MOUSE = 2
class libinput.constant.AccelProfile

An enumeration.

NONE = 0
FLAT = 1
ADAPTIVE = 2
class libinput.constant.ClickMethod

An enumeration.

NONE = 0
BUTTON_AREAS = 1
CLICKFINGER = 2
class libinput.constant.MiddleEmulationState

An enumeration.

DISABLED = 0
ENABLED = 1
class libinput.constant.ScrollMethod

An enumeration.

NO_SCROLL = 0
SCROLL_2FG = 1
EDGE = 2
ON_BUTTON_DOWN = 4
class libinput.constant.DwtState

An enumeration.

DISABLED = 0
ENABLED = 1