mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 15:46:00 +01:00
016da234d0
Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
52 lines
No EOL
1.1 KiB
C++
52 lines
No EOL
1.1 KiB
C++
#pragma once
|
|
|
|
#include "IHID.hpp"
|
|
#include "../helpers/WLListener.hpp"
|
|
#include "../macros.hpp"
|
|
#include "../helpers/math/Math.hpp"
|
|
|
|
AQUAMARINE_FORWARD(ITouch);
|
|
|
|
class ITouch : public IHID {
|
|
public:
|
|
virtual uint32_t getCapabilities();
|
|
virtual eHIDType getType();
|
|
virtual bool isVirtual() = 0;
|
|
virtual SP<Aquamarine::ITouch> aq() = 0;
|
|
|
|
struct SDownEvent {
|
|
uint32_t timeMs = 0;
|
|
int32_t touchID = 0;
|
|
Vector2D pos;
|
|
SP<ITouch> device;
|
|
};
|
|
|
|
struct SUpEvent {
|
|
uint32_t timeMs = 0;
|
|
int32_t touchID = 0;
|
|
};
|
|
|
|
struct SMotionEvent {
|
|
uint32_t timeMs = 0;
|
|
int32_t touchID = 0;
|
|
Vector2D pos;
|
|
};
|
|
|
|
struct SCancelEvent {
|
|
uint32_t timeMs = 0;
|
|
int32_t touchID = 0;
|
|
};
|
|
|
|
struct {
|
|
CSignal down;
|
|
CSignal up;
|
|
CSignal motion;
|
|
CSignal cancel;
|
|
CSignal frame;
|
|
} touchEvents;
|
|
|
|
std::string hlName = "";
|
|
std::string boundOutput = "";
|
|
|
|
WP<ITouch> self;
|
|
}; |