mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 22:05:58 +01:00
Vaxry
1237732b97
Implements an intermediary HID class for mice, keyboards and touch devices, removing the old structs from WLClasses.hpp Yes, virtual ones are duplicated a bit, but will likely be de-duped once wlr_input_device is not used anymore.
24 lines
No EOL
475 B
C++
24 lines
No EOL
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);
|
|
}; |