11 #include "input/touch/generic/GenericTouchInputHandler.h" 12 #include "utils/Geometry.h" 18 struct libinput_event_touch;
19 struct libinput_device;
25 void ProcessTouchDown(libinput_event_touch *e);
26 void ProcessTouchMotion(libinput_event_touch *e);
27 void ProcessTouchUp(libinput_event_touch *e);
28 void ProcessTouchCancel(libinput_event_touch *e);
29 void ProcessTouchFrame(libinput_event_touch *e);
32 void CheckSlot(
int slot);
35 void SetPosition(
int slot,
CPoint point);
36 int GetX(
int slot) {
return m_points.at(slot).second.x; }
37 int GetY(
int slot) {
return m_points.at(slot).second.y; }
39 std::vector<std::pair<TouchInput, CPoint>> m_points{std::make_pair(TouchInputUnchanged,
CPoint(0, 0))};
TouchInput
Touch input event.
Definition: ITouchInputHandler.h:20