|
enum | WacomBusType {
WBUSTYPE_UNKNOWN
, WBUSTYPE_USB
, WBUSTYPE_SERIAL
, WBUSTYPE_BLUETOOTH
,
WBUSTYPE_I2C
} |
| Bus types for tablets. More...
|
|
enum | WacomIntegrationFlags { WACOM_DEVICE_INTEGRATED_NONE = 0
, WACOM_DEVICE_INTEGRATED_DISPLAY = (1 << 0)
, WACOM_DEVICE_INTEGRATED_SYSTEM = (1 << 1)
, WACOM_DEVICE_INTEGRATED_REMOTE = (1 << 2)
} |
| Tablet integration. More...
|
|
enum | WacomClass {
WCLASS_UNKNOWN
, WCLASS_INTUOS3
, WCLASS_INTUOS4
, WCLASS_INTUOS5
,
WCLASS_CINTIQ
, WCLASS_BAMBOO
, WCLASS_GRAPHIRE
, WCLASS_ISDV4
,
WCLASS_INTUOS
, WCLASS_INTUOS2
, WCLASS_PEN_DISPLAYS
, WCLASS_REMOTE
} |
| Classes of devices. More...
|
|
enum | WacomButtonFlags {
WACOM_BUTTON_NONE = 0
, WACOM_BUTTON_POSITION_LEFT = (1 << 1)
, WACOM_BUTTON_POSITION_RIGHT = (1 << 2)
, WACOM_BUTTON_POSITION_TOP = (1 << 3)
,
WACOM_BUTTON_POSITION_BOTTOM = (1 << 4)
, WACOM_BUTTON_RING_MODESWITCH = (1 << 5)
, WACOM_BUTTON_RING2_MODESWITCH = (1 << 6)
, WACOM_BUTTON_TOUCHSTRIP_MODESWITCH = (1 << 7)
,
WACOM_BUTTON_TOUCHSTRIP2_MODESWITCH = (1 << 8)
, WACOM_BUTTON_OLED = (1 << 9)
, WACOM_BUTTON_DIAL_MODESWITCH = (1 << 10)
, WACOM_BUTTON_DIAL2_MODESWITCH = (1 << 11)
,
WACOM_BUTTON_MODESWITCH = (WACOM_BUTTON_RING_MODESWITCH | WACOM_BUTTON_RING2_MODESWITCH | WACOM_BUTTON_TOUCHSTRIP_MODESWITCH | WACOM_BUTTON_TOUCHSTRIP2_MODESWITCH | WACOM_BUTTON_DIAL_MODESWITCH | WACOM_BUTTON_DIAL2_MODESWITCH)
, WACOM_BUTTON_DIRECTION = (WACOM_BUTTON_POSITION_LEFT | WACOM_BUTTON_POSITION_RIGHT | WACOM_BUTTON_POSITION_TOP | WACOM_BUTTON_POSITION_BOTTOM)
, WACOM_BUTTON_RINGS_MODESWITCH = (WACOM_BUTTON_RING_MODESWITCH | WACOM_BUTTON_RING2_MODESWITCH)
, WACOM_BUTTON_TOUCHSTRIPS_MODESWITCH = (WACOM_BUTTON_TOUCHSTRIP_MODESWITCH | WACOM_BUTTON_TOUCHSTRIP2_MODESWITCH)
,
WACOM_BUTTON_DIALS_MODESWITCH = (WACOM_BUTTON_DIAL_MODESWITCH | WACOM_BUTTON_DIAL2_MODESWITCH)
} |
| Capabilities of the various tablet buttons. More...
|
|
enum | WacomFallbackFlags { WFALLBACK_NONE = 0
, WFALLBACK_GENERIC = 1
} |
|
enum | WacomCompareFlags { WCOMPARE_NORMAL = 0
, WCOMPARE_MATCHES = (1 << 1)
} |
|
enum | WacomStatusLEDs {
WACOM_STATUS_LED_UNAVAILABLE = -1
, WACOM_STATUS_LED_RING = 0
, WACOM_STATUS_LED_RING2 = 1
, WACOM_STATUS_LED_TOUCHSTRIP = 2
,
WACOM_STATUS_LED_TOUCHSTRIP2 = 3
, WACOM_STATUS_LED_DIAL = 4
, WACOM_STATUS_LED_DIAL2 = 5
} |
|
|
WacomDevice * | libwacom_new_from_builder (const WacomDeviceDatabase *db, const WacomBuilder *builder, WacomFallbackFlags fallback, WacomError *error) |
| Create a new device reference for the given builder.
|
|
WacomDevice * | libwacom_new_from_path (const WacomDeviceDatabase *db, const char *path, WacomFallbackFlags fallback, WacomError *error) |
| Create a new device reference from the given device path.
|
|
WacomDevice * | libwacom_new_from_usbid (const WacomDeviceDatabase *db, int vendor_id, int product_id, WacomError *error) |
| Create a new device reference from the given vendor/product IDs.
|
|
WacomDevice * | libwacom_new_from_name (const WacomDeviceDatabase *db, const char *name, WacomError *error) |
| Create a new device reference from the given name.
|
|
WacomDevice ** | libwacom_list_devices_from_database (const WacomDeviceDatabase *db, WacomError *error) |
| Returns the list of devices in the given database.
|
|
void | libwacom_print_device_description (int fd, const WacomDevice *device) |
| Print the description of this device to the given file.
|
|
void | libwacom_destroy (WacomDevice *device) |
| Remove the device and free all memory and references to it.
|
|
int | libwacom_compare (const WacomDevice *a, const WacomDevice *b, WacomCompareFlags flags) |
| Compare the two devices for equal-ness.
|
|
LIBWACOM_DEPRECATED WacomClass | libwacom_get_class (const WacomDevice *device) |
|
const char * | libwacom_get_name (const WacomDevice *device) |
|
const char * | libwacom_get_model_name (const WacomDevice *device) |
|
const char * | libwacom_get_layout_filename (const WacomDevice *device) |
|
int | libwacom_get_vendor_id (const WacomDevice *device) |
|
const char * | libwacom_get_match (const WacomDevice *device) |
|
const WacomMatch ** | libwacom_get_matches (const WacomDevice *device) |
|
const WacomMatch * | libwacom_get_paired_device (const WacomDevice *device) |
| Return the match string of the paired device for this device.
|
|
int | libwacom_get_product_id (const WacomDevice *device) |
|
int | libwacom_get_width (const WacomDevice *device) |
| Retrieve the width of the device.
|
|
int | libwacom_get_height (const WacomDevice *device) |
| Retrieve the height of the device.
|
|
int | libwacom_has_stylus (const WacomDevice *device) |
|
int | libwacom_has_touch (const WacomDevice *device) |
|
int | libwacom_get_num_buttons (const WacomDevice *device) |
| Tablet buttons are numbered 'A' through to 'A' + number of buttons.
|
|
int | libwacom_get_num_keys (const WacomDevice *device) |
| Tablet keys indices are numbered from zero.
|
|
int | libwacom_has_ring (const WacomDevice *device) LIBWACOM_DEPRECATED |
|
int | libwacom_has_ring2 (const WacomDevice *device) LIBWACOM_DEPRECATED |
|
int | libwacom_get_num_rings (const WacomDevice *device) |
|
int | libwacom_has_touchswitch (const WacomDevice *device) |
|
int | libwacom_get_ring_num_modes (const WacomDevice *device) |
|
int | libwacom_get_ring2_num_modes (const WacomDevice *device) |
|
int | libwacom_get_num_strips (const WacomDevice *device) |
|
int | libwacom_get_strips_num_modes (const WacomDevice *device) |
|
int | libwacom_get_num_dials (const WacomDevice *device) |
|
int | libwacom_get_dial_num_modes (const WacomDevice *device) |
|
int | libwacom_get_dial2_num_modes (const WacomDevice *device) |
|
const WacomStatusLEDs * | libwacom_get_status_leds (const WacomDevice *device, int *num_leds) |
|
int | libwacom_get_button_led_group (const WacomDevice *device, char button) |
|
int | libwacom_is_builtin (const WacomDevice *device) LIBWACOM_DEPRECATED |
|
int | libwacom_is_reversible (const WacomDevice *device) |
|
WacomIntegrationFlags | libwacom_get_integration_flags (const WacomDevice *device) |
|
WacomBusType | libwacom_get_bustype (const WacomDevice *device) |
|
WacomButtonFlags | libwacom_get_button_flag (const WacomDevice *device, char button) |
|
int | libwacom_get_button_evdev_code (const WacomDevice *device, char button) |
|
const char * | libwacom_match_get_name (const WacomMatch *match) |
|
const char * | libwacom_match_get_uniq (const WacomMatch *match) |
|
WacomBusType | libwacom_match_get_bustype (const WacomMatch *match) |
|
uint32_t | libwacom_match_get_product_id (const WacomMatch *match) |
|
uint32_t | libwacom_match_get_vendor_id (const WacomMatch *match) |
|
const char * | libwacom_match_get_match_string (const WacomMatch *match) |
|
Functions to create and manage libwacom devices.
Return the match string of the paired device for this device.
A paired device is a device with a different match string but that shares the physical device with this device.
If the return value is NULL, no device is paired with this device or all paired devices have the same WacomMatch as this device.
The returned device may not be a libwacom device itself.
- Parameters
-
device | The tablet to query |
- Returns
- A pointer to paired device for this device. Do not modify this pointer or any content!