diff --git a/es-core/src/components/primary/CarouselComponent.h b/es-core/src/components/primary/CarouselComponent.h index 5051d31da..2acc06723 100644 --- a/es-core/src/components/primary/CarouselComponent.h +++ b/es-core/src/components/primary/CarouselComponent.h @@ -66,14 +66,14 @@ public: return mLetterCaseGroupedCollections; } - void setCursorChangedCallback(const std::function& func) override - { - mCursorChangedCallback = func; - } void setCancelTransitionsCallback(const std::function& func) override { mCancelTransitionsCallback = func; } + void setCursorChangedCallback(const std::function& func) override + { + mCursorChangedCallback = func; + } bool input(InputConfig* config, Input input) override; void update(int deltaTime) override; diff --git a/es-core/src/components/primary/TextListComponent.h b/es-core/src/components/primary/TextListComponent.h index 16d537b3f..42cfa8378 100644 --- a/es-core/src/components/primary/TextListComponent.h +++ b/es-core/src/components/primary/TextListComponent.h @@ -57,14 +57,14 @@ public: void setAlignment(PrimaryAlignment align) override { mAlignment = align; } - void setCursorChangedCallback(const std::function& func) override - { - mCursorChangedCallback = func; - } void setCancelTransitionsCallback(const std::function& func) override { mCancelTransitionsCallback = func; } + void setCursorChangedCallback(const std::function& func) override + { + mCursorChangedCallback = func; + } void setFont(const std::shared_ptr& font) { @@ -111,6 +111,7 @@ private: Renderer* mRenderer; std::function mCancelTransitionsCallback; + std::function mCursorChangedCallback; float mCamOffset; int mPreviousScrollVelocity; @@ -122,7 +123,6 @@ private: PrimaryAlignment mAlignment; float mHorizontalMargin; - std::function mCursorChangedCallback; ImageComponent mSelectorImage; std::shared_ptr mFont;