| 12345678910111213141516171819202122232425262728293031323334353637 | 
							- /*
 
- * InputSourceTouch.h, part of VCMI engine
 
- *
 
- * Authors: listed in file AUTHORS in main folder
 
- *
 
- * License: GNU General Public License v2.0 or later
 
- * Full text of license available in license.txt file, in main folder
 
- *
 
- */
 
- #pragma once
 
- VCMI_LIB_NAMESPACE_BEGIN
 
- class Point;
 
- VCMI_LIB_NAMESPACE_END
 
- struct SDL_TouchFingerEvent;
 
- /// Class that handles touchscreen input from SDL events
 
- class InputSourceTouch
 
- {
 
- 	bool multifinger;
 
- 	bool isPointerRelativeMode;
 
- 	/// moves mouse pointer into specified position inside vcmi window
 
- 	void moveCursorToPosition(const Point & position);
 
- 	Point convertTouchToMouse(const SDL_TouchFingerEvent & current);
 
- 	void fakeMouseButtonEventRelativeMode(bool down, bool right);
 
- public:
 
- 	InputSourceTouch();
 
- 	void handleEventFingerMotion(const SDL_TouchFingerEvent & current);
 
- 	void handleEventFingerDown(const SDL_TouchFingerEvent & current);
 
- 	void handleEventFingerUp(const SDL_TouchFingerEvent & current);
 
- };
 
 
  |