Add XKB interface for x11
This commit is contained in:
parent
7ad237edc1
commit
cf9bace272
15 changed files with 232 additions and 31 deletions
|
@ -1,16 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include "Keyboard.h"
|
||||
|
||||
#include "wayland-client.h"
|
||||
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
|
||||
class WaylandKeyboard
|
||||
class WaylandKeyboard : public Keyboard
|
||||
{
|
||||
public:
|
||||
WaylandKeyboard(wl_keyboard* keyboard);
|
||||
|
||||
~WaylandKeyboard();
|
||||
|
||||
std::string getKeyString(KeyCode keyCode) override { return "";};
|
||||
|
||||
private:
|
||||
static void keyboardKeymapEvent(void *data, struct wl_keyboard *wl_keyboard, uint32_t format, int32_t fd, uint32_t size);
|
||||
static void keyboardEnterEvent(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_surface *surface, struct wl_array *keys);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue