Add basic drawing tablet support to rootston

This commit is contained in:
Drew DeVault 2017-10-01 11:21:55 -04:00
parent 933cffaa8d
commit f2ea691b93
3 changed files with 5 additions and 2 deletions

View File

@ -109,6 +109,8 @@ void pointer_add(struct wlr_input_device *device, struct roots_input *input);
void pointer_remove(struct wlr_input_device *device, struct roots_input *input);
void keyboard_add(struct wlr_input_device *device, struct roots_input *input);
void keyboard_remove(struct wlr_input_device *device, struct roots_input *input);
void tablet_tool_add(struct wlr_input_device *device, struct roots_input *input);
void tablet_tool_remove(struct wlr_input_device *device, struct roots_input *input);
void cursor_initialize(struct roots_input *input);
void cursor_load_config(struct roots_config *config,

View File

@ -40,7 +40,7 @@ static void input_add_notify(struct wl_listener *listener, void *data) {
//touch_add(device, input);
break;
case WLR_INPUT_DEVICE_TABLET_TOOL:
//tablet_tool_add(device, input);
tablet_tool_add(device, input);
break;
default:
break;
@ -61,7 +61,7 @@ static void input_remove_notify(struct wl_listener *listener, void *data) {
//touch_remove(device, input);
break;
case WLR_INPUT_DEVICE_TABLET_TOOL:
//tablet_tool_remove(device, input);
tablet_tool_remove(device, input);
break;
default:
break;

View File

@ -9,6 +9,7 @@ executable(
'main.c',
'output.c',
'pointer.c',
'tablet_tool.c',
'xdg_shell_v6.c',
'xwayland.c',
'wl_shell.c',