hyprland-plugins/hyprexpo/ExpoGesture.hpp

18 lines
528 B
C++

#pragma once
#include <hyprland/src/managers/input/trackpad/gestures/ITrackpadGesture.hpp>
class CExpoGesture : public ITrackpadGesture {
public:
CExpoGesture() = default;
virtual ~CExpoGesture() = default;
virtual void begin(const ITrackpadGesture::STrackpadGestureBegin& e);
virtual void update(const ITrackpadGesture::STrackpadGestureUpdate& e);
virtual void end(const ITrackpadGesture::STrackpadGestureEnd& e);
private:
float m_lastDelta = 0.F;
bool m_firstUpdate = false;
};