mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 00:56:55 +02:00
Add touch input support, add fast scrolling support for coverflow display mode, fix use after free bug in banner list mode
This commit is contained in:
14
arm9/source/gui/input/ITouchInputSource.h
Normal file
14
arm9/source/gui/input/ITouchInputSource.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#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;
|
||||
};
|
||||
Reference in New Issue
Block a user