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:
@@ -27,7 +27,9 @@ void InputRepeater::Update()
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_state = State::Idle;
|
||||
}
|
||||
}
|
||||
else if (_state == State::NextRepeat)
|
||||
{
|
||||
@@ -40,13 +42,24 @@ void InputRepeater::Update()
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_state = State::Idle;
|
||||
}
|
||||
}
|
||||
|
||||
InputKey lastRepKeys = _currentKeys & _repeatMask;
|
||||
_currentKeys = curKeys | repKeys;
|
||||
_triggeredKeys = _inputProvider->GetTriggeredKeys() | repKeys;
|
||||
_releasedKeys = _inputProvider->GetReleasedKeys() | (lastRepKeys & (lastRepKeys ^ repKeys));
|
||||
Point touchPoint;
|
||||
if (_inputProvider->GetCurrentTouchPoint(touchPoint))
|
||||
{
|
||||
_currentTouchPoint = touchPoint;
|
||||
}
|
||||
else
|
||||
{
|
||||
_currentTouchPoint = Point(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void InputRepeater::Reset()
|
||||
|
||||
Reference in New Issue
Block a user