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

Commit

Permalink
Amethyst API v11 (Settings interface changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
KimihikoAkayasaki committed Jun 30, 2022
1 parent 834f2a8 commit 87766e3
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion external/vendor/Amethyst_API_Devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ inline std::string WStringToString(const std::wstring& s)
namespace ktvr
{
// Interface Version
static const char* IK2API_Devices_Version = "IK2API_Version_010";
static const char* IK2API_Devices_Version = "IK2API_Version_011";

// Return messaging types
enum K2InitErrorType
Expand Down Expand Up @@ -177,6 +177,13 @@ namespace ktvr
{
}

// IsPrimary (White/Gray) Get and Set
virtual bool IsPrimary() { return true; }

virtual void IsPrimary(const bool& primary)
{
}

// Width Get and Set
virtual uint32_t Width() { return 0; }

Expand Down Expand Up @@ -641,11 +648,24 @@ namespace ktvr
{
}

// Append a One-Row element pair : horizontal stack
virtual void AppendElementPairStack(
const Element& first_element,
const Element& second_element)
{
}

// Append a One-Row element vector : */* column space
virtual void AppendElementVector(
const std::vector<Element>& element_vector)
{
}

// Append a One-Row element vector : horizontal stack
virtual void AppendElementVectorStack(
const std::vector<Element>& element_vector)
{
}
};
}

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

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

/*
Expand Down

0 comments on commit 87766e3

Please sign in to comment.