Added navigation sound support to GridComponent.

This commit is contained in:
Leon Styhre 2022-12-03 14:19:22 +01:00
parent 48d86ccea7
commit b67ce99a0e

View file

@ -72,6 +72,11 @@ public:
unsigned int properties) override;
private:
void onScroll() override
{
if (!NavigationSounds::getInstance().isPlayingThemeNavigationSound(SCROLLSOUND))
NavigationSounds::getInstance().playThemeNavigationSound(SCROLLSOUND);
}
void onCursorChanged(const CursorState& state) override;
bool isScrolling() const override { return List::isScrolling(); }
void stopScrolling() override { List::stopScrolling(); }