Definitions in mtouch_driver.h

Updated: October 28, 2024

Preprocessor macro definitions for the mtouch_driver.h header file in the libinputevents library

Definitions:

#include <input/>
#define MTOUCH_CAPABILITIES_CONTACT_ID (1 << 0)

The multitouch device capability to support contact IDs.

#define MTOUCH_CAPABILITIES_COORDS (1 << 1)

The multitouch device capability to support coordinates.

#define MTOUCH_CAPABILITIES_CONTACT_COUNT (1 << 2)

The multitouch device capability to support contact counts.

#define MTOUCH_CAPABILITIES_WIDTH (1 << 3)

The multitouch device capability to support touch widths.

#define MTOUCH_CAPABILITIES_HEIGHT (1 << 4)

The multitouch device capability to support touch heights.

#define MTOUCH_CAPABILITIES_ORIENTATION (1 << 5)

The multitouch device capability to support touch orientations.

#define MTOUCH_CAPABILITIES_PRESSURE (1 << 6)

The multitouch device capability to support touch pressures (or signal strength for capacitive touchscreens).

#define MTOUCH_CAPABILITIES_RATE_SET (1 << 7)

The multitouch device capability to support setting of an event rate.

#define MTOUCH_CAPABILITIES_SEQ_ID (1 << 8)

The multitouch device capability to support sequence IDs.

#define MTOUCH_CAPABILITIES_CONTACT_TYPE (1 << 9)

The multitouch device capability to support contact type.

#define MTOUCH_DEFAULT_WIDTH 1

The width when MTOUCH_CAPABILITIES_WIDTH isn't set or if this capability isn't available.

#define MTOUCH_DEFAULT_HEIGHT 1

The height when MTOUCH_CAPABILITIES_HEIGHT isn't set or if this capability isn't available.

#define MTOUCH_DEFAULT_PRESSURE 1

The pressure when MTOUCH_CAPABILITIES_PRESSURE isn't set or if this this capability isn't available.

#define MTOUCH_FLAGS_INCONSISTENT_DIGIT_ORDER (1 << 0)

A multi-touch device flag.

Devices that report touch data for individual fingers in an inconsistent order should set this flag. Use this flag, along with the MTOUCH_FLAGS_INCONSISTENT_CONTACT_IDS flag, to describe the relationship between the digit index and the contact ID.

#define MTOUCH_FLAGS_INCONSISTENT_CONTACT_IDS (1 << 1)

A multitouch device flag.

Devices that don't have contact IDs assigned as a zero-based index should set this flag. Use this flag along with the MTOUCH_FLAGS_INCONSISTENT_DIGIT_ORDER flag to describe the relationship between the digit index and the contact ID.

#define MTOUCH_FLAGS_SINGLE_COORDINATE_PACKET (1 << 2)

A multitouch device flag.

Devices that report touch data for single set of coordinates in an individual packet. Use this flag along with the MTOUCH_FLAGS_INCONSISTENT_DIGIT_ORDER flag to describe the relationship between the digit index and the contact ID.

Library:

libinputevents
  翻译: