12 #include "input/touch/ITouchInputHandler.h" 17 #include <wayland-client-protocol.hpp> 36 void SetCoordinateScale(std::int32_t scale) { m_coordinateScale = scale; }
38 void OnTouchDown(
CSeat* seat,
41 const wayland::surface_t& surface,
45 void OnTouchUp(
CSeat* seat, std::uint32_t serial, std::uint32_t time, std::int32_t
id)
override;
46 void OnTouchMotion(
CSeat* seat, std::uint32_t time, std::int32_t
id,
double x,
double y)
override;
47 void OnTouchCancel(
CSeat* seat)
override;
48 void OnTouchShape(
CSeat* seat, std::int32_t
id,
double major,
double minor)
override;
56 std::uint32_t lastEventTime;
58 std::int32_t kodiPointerNumber;
64 TouchPoint(std::uint32_t initialEventTime, std::int32_t kodiPointerNumber,
float x,
float y,
float size)
65 : lastEventTime{initialEventTime}, kodiPointerNumber{kodiPointerNumber}, x{x}, y{y}, size{size}
69 void SendTouchPointEvent(
TouchInput event, TouchPoint
const& point);
70 void UpdateTouchPoint(TouchPoint
const& point);
73 wayland::surface_t m_surface;
74 std::int32_t m_coordinateScale{1};
77 std::map<std::int32_t, TouchPoint> m_touchPoints;
Definition: AudioDecoder.h:18
Handle all events and requests related to one seat (including input and selection) ...
Definition: Seat.h:114
TouchInput
Touch input event.
Definition: ITouchInputHandler.h:20