mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-11 03:25:59 +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.
25 lines
No EOL
482 B
C++
25 lines
No EOL
482 B
C++
#pragma once
|
|
|
|
#include "ITouch.hpp"
|
|
|
|
class CTouchDevice : public ITouch {
|
|
public:
|
|
static SP<CTouchDevice> create(wlr_touch* touch);
|
|
|
|
virtual bool isVirtual();
|
|
virtual wlr_touch* wlr();
|
|
|
|
private:
|
|
CTouchDevice(wlr_touch* touch);
|
|
|
|
wlr_touch* touch = nullptr;
|
|
|
|
void disconnectCallbacks();
|
|
|
|
DYNLISTENER(destroy);
|
|
DYNLISTENER(down);
|
|
DYNLISTENER(up);
|
|
DYNLISTENER(motion);
|
|
DYNLISTENER(cancel);
|
|
DYNLISTENER(frame);
|
|
}; |