aboutsummaryrefslogtreecommitdiff
path: root/input.h
blob: 37ad8452b592eee35dbc08ea004d654f8dd809d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <stdint.h>
#include <wayland-client.h>

#include "wayland.h"

extern const struct wl_keyboard_listener keyboard_listener;
extern const struct wl_pointer_listener pointer_listener;

void input_repeat(struct seat *seat, uint32_t key);

bool input_parse_key_binding(struct xkb_keymap *keymap, const char *combos,
                             key_binding_list_t *bindings);
bool input_parse_mouse_binding(struct xkb_keymap *keymap, const char *combos,
                               enum bind_action_normal action,
                               mouse_binding_list_t *bindings);