diff --git a/veikk.h b/veikk.h index 49b5543..44b01f2 100644 --- a/veikk.h +++ b/veikk.h @@ -64,7 +64,7 @@ enum veikk_orientation { struct veikk_pen_report { u8 report_id; u8 buttons; - u16 x, y, pressure; + u16 x, y, pressure, tilt; }; // device-specific properties; one created for every device. These diff --git a/veikk_vdev.c b/veikk_vdev.c index 9ec5af5..b34e3f2 100644 --- a/veikk_vdev.c +++ b/veikk_vdev.c @@ -214,6 +214,14 @@ struct veikk_device_info veikk_device_info_0x1001 = { .handle_raw_data = veikk_s640_handle_raw_data, .handle_modparm_change = veikk_s640_handle_modparm_change }; +struct veikk_device_info veikk_device_info_0x0005 = { + .name = "VEIKK VK640 Pen", .prod_id = 0x0005, + .x_max = 32768, .y_max = 32768, .pressure_max = 8192, + .setup_and_register_input_devs = veikk_s640_setup_and_register_input_devs, + .alloc_input_devs = veikk_s640_alloc_input_devs, + .handle_raw_data = veikk_s640_handle_raw_data, + .handle_modparm_change = veikk_s640_handle_modparm_change +}; /** END struct veikk_device LIST **/ #define VEIKK_DEVICE(prod)\ @@ -226,6 +234,7 @@ const struct hid_device_id veikk_ids[] = { { VEIKK_DEVICE(0x0004) }, // A15 { VEIKK_DEVICE(0x0006) }, // A15 Pro { VEIKK_DEVICE(0x1001) }, // VK1560 + { VEIKK_DEVICE(0x0005) }, // VK640 // TODO: add more devices here {} };