mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
rootston: break up input.h
This commit is contained in:
parent
80b4a2f64c
commit
53021f8ed4
12 changed files with 93 additions and 52 deletions
22
include/rootston/keyboard.h
Normal file
22
include/rootston/keyboard.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef _ROOTSTON_KEYBOARD_H
|
||||
#define _ROOTSTON_KEYBOARD_H
|
||||
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
#include "rootston/input.h"
|
||||
|
||||
#define ROOTS_KEYBOARD_PRESSED_KEYSYMS_CAP 32
|
||||
|
||||
struct roots_keyboard {
|
||||
struct roots_input *input;
|
||||
struct wlr_input_device *device;
|
||||
struct wl_listener key;
|
||||
struct wl_listener modifiers;
|
||||
struct wl_list link;
|
||||
|
||||
xkb_keysym_t pressed_keysyms[ROOTS_KEYBOARD_PRESSED_KEYSYMS_CAP];
|
||||
};
|
||||
|
||||
void keyboard_add(struct wlr_input_device *device, struct roots_input *input);
|
||||
void keyboard_remove(struct wlr_input_device *device, struct roots_input *input);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue