HyperX zones per slot, set Hue Plus zones as linear type

This commit is contained in:
Adam Honse 2019-12-23 12:35:42 -06:00
parent e799574730
commit f76bf34d8d
4 changed files with 50 additions and 21 deletions

View file

@ -56,6 +56,21 @@ unsigned int HyperXController::GetLEDCount()
return(led_count);
}
unsigned int HyperXController::GetSlotCount()
{
unsigned int slot_count = 0;
for(int slot = 0; slot < 4; slot++)
{
if((slots_valid & (1 << slot)) != 0)
{
slot_count++;
}
}
return(slot_count);
}
unsigned int HyperXController::GetMode()
{
return(mode);

View file

@ -163,6 +163,7 @@ public:
std::string GetDeviceName();
std::string GetDeviceLocation();
unsigned int GetLEDCount();
unsigned int GetSlotCount();
unsigned int GetMode();
void SetMode(unsigned char new_mode);