|
|
@ -11,7 +11,7 @@ enum wlr_input_device_type {
|
|
|
|
WLR_INPUT_DEVICE_POINTER,
|
|
|
|
WLR_INPUT_DEVICE_POINTER,
|
|
|
|
WLR_INPUT_DEVICE_TOUCH,
|
|
|
|
WLR_INPUT_DEVICE_TOUCH,
|
|
|
|
WLR_INPUT_DEVICE_TABLET_TOOL,
|
|
|
|
WLR_INPUT_DEVICE_TABLET_TOOL,
|
|
|
|
WLR_INPUT_DEVICE_TABLET_PAD
|
|
|
|
WLR_INPUT_DEVICE_TABLET_PAD,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* Note: these are circular dependencies */
|
|
|
|
/* Note: these are circular dependencies */
|
|
|
@ -27,10 +27,11 @@ struct wlr_input_device {
|
|
|
|
const struct wlr_input_device_impl *impl;
|
|
|
|
const struct wlr_input_device_impl *impl;
|
|
|
|
|
|
|
|
|
|
|
|
enum wlr_input_device_type type;
|
|
|
|
enum wlr_input_device_type type;
|
|
|
|
int vendor, product;
|
|
|
|
unsigned int vendor, product;
|
|
|
|
char *name;
|
|
|
|
char *name;
|
|
|
|
// Or 0 if not applicable to this device
|
|
|
|
// Or 0 if not applicable to this device
|
|
|
|
double width_mm, height_mm;
|
|
|
|
double width_mm, height_mm;
|
|
|
|
|
|
|
|
char *output_name;
|
|
|
|
|
|
|
|
|
|
|
|
/* wlr_input_device.type determines which of these is valid */
|
|
|
|
/* wlr_input_device.type determines which of these is valid */
|
|
|
|
union {
|
|
|
|
union {
|
|
|
|