2024-05-03 23:34:10 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ITouch.hpp"
|
|
|
|
|
|
|
|
class CTouchDevice : public ITouch {
|
|
|
|
public:
|
2024-07-21 13:09:54 +02:00
|
|
|
static SP<CTouchDevice> create(SP<Aquamarine::ITouch> touch);
|
2024-05-03 23:34:10 +02:00
|
|
|
|
2024-07-21 13:09:54 +02:00
|
|
|
virtual bool isVirtual();
|
|
|
|
virtual SP<Aquamarine::ITouch> aq();
|
2024-05-03 23:34:10 +02:00
|
|
|
|
|
|
|
private:
|
2024-07-21 13:09:54 +02:00
|
|
|
CTouchDevice(SP<Aquamarine::ITouch> touch);
|
2024-05-03 23:34:10 +02:00
|
|
|
|
2024-07-21 13:09:54 +02:00
|
|
|
WP<Aquamarine::ITouch> touch;
|
2024-05-03 23:34:10 +02:00
|
|
|
|
2024-07-21 13:09:54 +02:00
|
|
|
struct {
|
|
|
|
CHyprSignalListener destroy;
|
|
|
|
CHyprSignalListener down;
|
|
|
|
CHyprSignalListener up;
|
|
|
|
CHyprSignalListener motion;
|
|
|
|
CHyprSignalListener cancel;
|
|
|
|
CHyprSignalListener frame;
|
|
|
|
} listeners;
|
2024-05-03 23:34:10 +02:00
|
|
|
};
|