mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
15 lines
413 B
C++
15 lines
413 B
C++
#pragma once
|
|
#include "core/math/Point.h"
|
|
|
|
/// @brief Interface for a source of touch input.
|
|
class ITouchInputSource
|
|
{
|
|
public:
|
|
virtual ~ITouchInputSource() { }
|
|
|
|
/// @brief Samples the touch input.
|
|
/// @param touchPosition When the pen is down, the current touch position.
|
|
/// @return \c true when the pen is down, or \c false otherwise.
|
|
virtual bool Sample(Point& touchPosition) const = 0;
|
|
};
|