Changeset View
Changeset View
Standalone View
Standalone View
src/client/touch.cpp
Show All 31 Lines | |||||
32 | namespace Client | 32 | namespace Client | ||
33 | { | 33 | { | ||
34 | 34 | | |||
35 | class Touch::Private | 35 | class Touch::Private | ||
36 | { | 36 | { | ||
37 | public: | 37 | public: | ||
38 | Private(Touch *q); | 38 | Private(Touch *q); | ||
39 | void setup(wl_touch *t); | 39 | void setup(wl_touch *t); | ||
40 | WaylandPointer<wl_touch, wl_touch_destroy> touch; | 40 | WaylandPointer<wl_touch, wl_touch_release> touch; | ||
41 | bool active = false; | 41 | bool active = false; | ||
42 | QVector<TouchPoint*> sequence; | 42 | QVector<TouchPoint*> sequence; | ||
43 | TouchPoint *getActivePoint(qint32 id) const; | 43 | TouchPoint *getActivePoint(qint32 id) const; | ||
44 | 44 | | |||
45 | private: | 45 | private: | ||
46 | static void downCallback(void *data, wl_touch *touch, uint32_t serial, uint32_t time, wl_surface *surface, int32_t id, wl_fixed_t x, wl_fixed_t y); | 46 | static void downCallback(void *data, wl_touch *touch, uint32_t serial, uint32_t time, wl_surface *surface, int32_t id, wl_fixed_t x, wl_fixed_t y); | ||
47 | static void upCallback(void *data, wl_touch *touch, uint32_t serial, uint32_t time, int32_t id); | 47 | static void upCallback(void *data, wl_touch *touch, uint32_t serial, uint32_t time, int32_t id); | ||
48 | static void motionCallback(void *data, wl_touch *touch, uint32_t time, int32_t id, wl_fixed_t x, wl_fixed_t y); | 48 | static void motionCallback(void *data, wl_touch *touch, uint32_t time, int32_t id, wl_fixed_t x, wl_fixed_t y); | ||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |