Add basic drawing tablet support to rootston

master
Drew DeVault 7 years ago
parent 933cffaa8d
commit f2ea691b93

@ -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,

@ -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;

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

Loading…
Cancel
Save