Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit 87766e3

Browse files
committed
Amethyst API v11 (Settings interface changes)
1 parent 834f2a8 commit 87766e3

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

external/vendor/Amethyst_API_Devices.h

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ inline std::string WStringToString(const std::wstring& s)
3030
namespace ktvr
3131
{
3232
// Interface Version
33-
static const char* IK2API_Devices_Version = "IK2API_Version_010";
33+
static const char* IK2API_Devices_Version = "IK2API_Version_011";
3434

3535
// Return messaging types
3636
enum K2InitErrorType
@@ -177,6 +177,13 @@ namespace ktvr
177177
{
178178
}
179179

180+
// IsPrimary (White/Gray) Get and Set
181+
virtual bool IsPrimary() { return true; }
182+
183+
virtual void IsPrimary(const bool& primary)
184+
{
185+
}
186+
180187
// Width Get and Set
181188
virtual uint32_t Width() { return 0; }
182189

@@ -641,11 +648,24 @@ namespace ktvr
641648
{
642649
}
643650

651+
// Append a One-Row element pair : horizontal stack
652+
virtual void AppendElementPairStack(
653+
const Element& first_element,
654+
const Element& second_element)
655+
{
656+
}
657+
644658
// Append a One-Row element vector : */* column space
645659
virtual void AppendElementVector(
646660
const std::vector<Element>& element_vector)
647661
{
648662
}
663+
664+
// Append a One-Row element vector : horizontal stack
665+
virtual void AppendElementVectorStack(
666+
const std::vector<Element>& element_vector)
667+
{
668+
}
649669
};
650670
}
651671

@@ -754,6 +774,8 @@ namespace ktvr
754774
// -> will lead to showing an additional 'settings' button
755775
// Note: each device has to save its settings independently
756776
// and may use the K2AppData from the Paths' header
777+
// Tip: you can hide your device's settings by marking this as 'false',
778+
// and change it back to 'true' when you're ready
757779
[[nodiscard]] bool isSettingsDaemonSupported() const { return settingsSupported; }
758780

759781
/*
@@ -966,6 +988,8 @@ namespace ktvr
966988
// -> will lead to showing an additional 'settings' button
967989
// Note: each device has to save its settings independently
968990
// and may use the K2AppData from the Paths' header
991+
// Tip: you can hide your device's settings by marking this as 'false',
992+
// and change it back to 'true' when you're ready
969993
[[nodiscard]] bool isSettingsDaemonSupported() const { return settingsSupported; }
970994

971995
/*

0 commit comments

Comments
 (0)