Initial commit for GitHub migration based on spice2x-25-03-03

This commit is contained in:
sp2xdev
2025-03-10 19:16:49 -07:00
parent 94af8d32c9
commit ed8c72852f
1008 changed files with 296815 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#pragma once
#include <string>
#include <vector>
#include <mutex>
namespace rawinput {
class SmxDedicabDevice {
public:
static constexpr int DEVICE_COUNT = 5;
static constexpr int LIGHTS_COUNT = DEVICE_COUNT * 3;
static std::string GetLightNameByIndex(size_t index);
SmxDedicabDevice();
bool Initialize();
void SetLightByIndex(size_t index, uint8_t value);
void Update();
private:
uint8_t* m_lightData[DEVICE_COUNT];
std::mutex m_lightDataMutex;
};
}