summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/CoreDevice.h
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2024-03-14 22:09:41 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2024-03-14 23:43:58 -0500
commitee43c9508c07fe58a6aa28f05a6509cd61249dd5 (patch)
tree85dd1a776ef5a1d81565375f491557562618d852 /Source/Core/InputCommon/ControllerInterface/CoreDevice.h
parent05383663263242c912329d882290a2cb5f0fde3d (diff)
ControllerInterface: Add IsHidden function to Control interface.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/CoreDevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h
index 4ed5866eff..5c7a8ed568 100644
--- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h
+++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h
@@ -64,6 +64,10 @@ public:
// May be overridden to allow multiple valid names.
// Useful for backwards-compatible configurations when names change.
virtual bool IsMatchingName(std::string_view name) const;
+
+ // May be overridden to hide in UI.
+ // Useful for backwards-compatible configurations when names change.
+ virtual bool IsHidden() const;
};
//
@@ -164,6 +168,7 @@ protected:
ControlState GetState() const override;
std::string GetName() const override;
bool IsDetectable() const override;
+ bool IsHidden() const override;
bool IsMatchingName(std::string_view name) const override;
private: