aboutsummaryrefslogtreecommitdiff
path: root/rootston/roots_cursor.c
blob: 72eff996f8a5827b6911aebd37db90ac62753aa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#include <stdlib.h>
#include <wlr/util/log.h>
#include "rootston/cursor.h"

struct roots_cursor *roots_cursor_create(struct roots_seat *seat) {
	struct roots_cursor *cursor = calloc(1, sizeof(struct roots_cursor));
	if (!cursor) {
		return NULL;
	}
	cursor->cursor = wlr_cursor_create();
	if (!cursor->cursor) {
		return NULL;
	}

	return cursor;
}

void roots_cursor_destroy(struct roots_cursor *cursor) {
	// TODO
}

void roots_cursor_handle_motion(struct roots_cursor *cursor,
		struct wlr_event_pointer_motion *event) {
	wlr_log(L_DEBUG, "TODO: cursor handle motion");
}

void roots_cursor_handle_motion_absolute(struct roots_cursor *cursor,
		struct wlr_event_pointer_motion_absolute *event) {
	wlr_log(L_DEBUG, "TODO: cursor handle motion absolute");
}

void roots_cursor_handle_button(struct roots_cursor *cursor,
		struct wlr_event_pointer_button *event) {
	wlr_log(L_DEBUG, "TODO: cursor handle button");
}

void roots_cursor_handle_axis(struct roots_cursor *cursor,
		struct wlr_event_pointer_axis *event) {
	wlr_log(L_DEBUG, "TODO: cursor handle axis");
}

void roots_cursor_handle_touch_down(struct roots_cursor *cursor,
		struct wlr_event_touch_down *event) {
	wlr_log(L_DEBUG, "TODO: cursor handle touch down");
}

void roots_cursor_handle_touch_up(struct roots_cursor *cursor,
		struct wlr_event_touch_up *event) {
	wlr_log(L_DEBUG, "TODO: cursor handle touch up");
}

void roots_cursor_handle_touch_motion(struct roots_cursor *cursor,
		struct wlr_event_touch_motion *event) {
	wlr_log(L_DEBUG, "TODO: cursor handle touch motion");
}

void roots_cursor_handle_tool_axis(struct roots_cursor *cursor,
		struct wlr_event_tablet_tool_axis *event) {
	wlr_log(L_DEBUG, "TODO: cursor handle tool axis");
}

void roots_cursor_handle_tool_tip(struct roots_cursor *cursor,
		struct wlr_event_tablet_tool_tip *event) {
	wlr_log(L_DEBUG, "TODO: cursor handle tool tip");
}