mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-25 14:16:53 +01:00
35 lines
1012 B
C
35 lines
1012 B
C
|
#pragma once
|
||
|
#include "WUPSConfigItem.h"
|
||
|
#include <string>
|
||
|
#include <wups/config.h>
|
||
|
|
||
|
namespace WUPSConfigAPIBackend {
|
||
|
|
||
|
class WUPSConfigItemV2 : public WUPSConfigItem {
|
||
|
public:
|
||
|
WUPSConfigItemV2(std::string_view displayName, 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
|