#pragma once #include "../GuiComponent.h" #include "../components/NinePatchComponent.h" #include "../components/ComponentGrid.h" class TextComponent; class GuiDetectDevice : public GuiComponent { public: GuiDetectDevice(Window* window, bool firstRun); bool input(InputConfig* config, Input input) override; void update(int deltaTime) override; void onSizeChanged() override; private: bool mFirstRun; InputConfig* mHoldingConfig; int mHoldTime; NinePatchComponent mBackground; ComponentGrid mGrid; std::shared_ptr mTitle; std::shared_ptr mMsg1; std::shared_ptr mMsg2; std::shared_ptr mDeviceInfo; std::shared_ptr mDeviceHeld; std::function mDoneCallback; };