mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-06 00:45:58 +01:00
24 lines
475 B
C++
24 lines
475 B
C++
|
#pragma once
|
||
|
|
||
|
#include "IKeyboard.hpp"
|
||
|
|
||
|
class CKeyboard : public IKeyboard {
|
||
|
public:
|
||
|
static SP<CKeyboard> create(wlr_keyboard* keeb);
|
||
|
|
||
|
virtual bool isVirtual();
|
||
|
virtual wlr_keyboard* wlr();
|
||
|
|
||
|
private:
|
||
|
CKeyboard(wlr_keyboard* keeb);
|
||
|
|
||
|
wlr_keyboard* keyboard = nullptr;
|
||
|
|
||
|
void disconnectCallbacks();
|
||
|
|
||
|
DYNLISTENER(destroy);
|
||
|
DYNLISTENER(key);
|
||
|
DYNLISTENER(modifiers);
|
||
|
DYNLISTENER(keymap);
|
||
|
DYNLISTENER(repeatInfo);
|
||
|
};
|