File: keyboard.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 (28 lines) | stat: -rw-r--r-- 570 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
25
26
27
28
#ifndef WLRCTL_DEV_KEYBOARD_H
#define WLRCTL_DEV_KEYBOARD_H

enum keyboard_action {
	KEYBOARD_ACTION_UNSPEC = 0,
	KEYBOARD_ACTION_TYPE,
};

struct wlrctl_keyboard_command {
	enum keyboard_action action;
	char *text;
	int mods_depressed;

	struct zwp_virtual_keyboard_v1 *device;
	struct xkb_context *xkb_context;
	struct {
		uint32_t format;
		uint32_t size;
		int fd;
	} keymap;
	struct wlrctl *state;
};

void prepare_keyboard(struct wlrctl *state, int argc, char *argv[]);
void run_keyboard(struct wlrctl *state);
void destroy_keyboard(struct wlrctl *state);

#endif