Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add VK640 #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion veikk.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions veikk_vdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)\
Expand All @@ -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
{}
};
Expand Down