WiiUPluginLoaderBackend/source/config/WUPSConfigItemV2.h

35 lines
1.0 KiB
C
Raw Normal View History

#pragma once
2024-11-27 20:44:36 +01:00
#include "WUPSConfigItem.h"
#include <string>
#include <wups/config.h>
namespace WUPSConfigAPIBackend {
2024-11-27 20:44:36 +01:00
class WUPSConfigItemV2 final : public WUPSConfigItem {
public:
2024-11-27 20:44:36 +01:00
WUPSConfigItemV2(std::string_view displayName, const WUPSConfigAPIItemCallbacksV2 &callbacks, void *context);
~WUPSConfigItemV2() override;
[[nodiscard]] std::string getCurrentValueDisplay() const override;
[[nodiscard]] std::string getCurrentValueSelectedDisplay() const override;
void onSelected(bool isSelected) const override;
void onInput(WUPSConfigSimplePadData input) const override;
void onInputEx(WUPSConfigComplexPadData input) const override;
[[nodiscard]] bool isMovementAllowed() const override;
void restoreDefault() const override;
void onCloseCallback() override;
private:
void *mContext;
std::string mDefaultValue;
WUPSConfigAPIItemCallbacksV2 mCallbacks{};
};
} // namespace WUPSConfigAPIBackend