| 1 |
/* |
| 2 |
* Copyright (C) 2013-2024 Team Kodi |
| 3 |
* This file is part of Kodi - https://kodi.tv |
| 4 |
* |
| 5 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 6 |
* See LICENSES/README.md for more information. |
| 7 |
*/ |
| 8 |
|
| 9 |
#pragma once |
| 10 |
|
| 11 |
#include "input/touch/generic/IGenericTouchGestureDetector.h" |
| 12 |
|
| 13 |
/*! |
| 14 |
* \ingroup touch_generic |
| 15 |
* \brief Implementation of IGenericTouchGestureDetector to detect pinch/zoom |
| 16 |
* gestures with at least two active touch pointers. |
| 17 |
* |
| 18 |
* \sa IGenericTouchGestureDetector |
| 19 |
*/ |
| 20 |
class CGenericTouchPinchDetector : public IGenericTouchGestureDetector |
| 21 |
{ |
| 22 |
public: |
| 23 |
CGenericTouchPinchDetector(ITouchActionHandler* handler, float dpi) |
| 24 |
: IGenericTouchGestureDetector(handler, dpi) |
| 25 |
{ |
| 26 |
} |
| 27 |
~CGenericTouchPinchDetector() override = default; |
| 28 |
|
| 29 |
bool OnTouchDown(unsigned int index, const Pointer& pointer) override; |
| 30 |
bool OnTouchUp(unsigned int index, const Pointer& pointer) override; |
| 31 |
bool OnTouchMove(unsigned int index, const Pointer& pointer) override; |
| 32 |
}; |