mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-04 07:40:42 -07:00
Initial commit for GitHub migration based on spice2x-25-03-03
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user