File: pointer.h

package info (click to toggle)
wlrctl 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 256 kB
  • sloc: ansic: 1,885; xml: 910; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 512 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef WLRCTL_DEV_POINTER_H
#define WLRCTL_DEV_POINTER_H

enum pointer_action {
	POINTER_ACTION_UNSPEC = 0,
	POINTER_ACTION_CLICK,
	POINTER_ACTION_MOTION,
	POINTER_ACTION_SCROLL,
};

struct wlrctl_pointer_command {
	enum pointer_action action;
	uint32_t button;
	wl_fixed_t dx, dy;

	struct zwlr_virtual_pointer_v1 *device;
	struct wlrctl *state;
};

void prepare_pointer(struct wlrctl *state, int argc, char *argv[]);
void run_pointer(struct wlrctl *state);
void destroy_pointer(struct wlrctl *state);

#endif