Update to spice2x-25-04-25 (pre-apply)
> broken commit
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include "rawinput/piuio.h"
|
||||
#include "rawinput/rawinput.h"
|
||||
#include "rawinput/sextet.h"
|
||||
#include "rawinput/smxdedicab.h"
|
||||
#include "rawinput/smxstage.h"
|
||||
#include "util/logging.h"
|
||||
|
||||
std::string Light::getDisplayString(rawinput::RawInputManager* manager) {
|
||||
@@ -65,6 +67,24 @@ std::string Light::getDisplayString(rawinput::RawInputManager* manager) {
|
||||
|
||||
return "Invalid PIUIO Light (" + index_string + ")";
|
||||
}
|
||||
case rawinput::SMX_STAGE: {
|
||||
|
||||
// get light name of SMX Stage device
|
||||
if (index < rawinput::SmxStageDevice::TOTAL_LIGHT_COUNT) {
|
||||
return rawinput::SmxStageDevice::GetLightNameByIndex(index) + " (" + index_string + ")";
|
||||
}
|
||||
|
||||
return "Invalid SMX Stage Light (" + index_string + ")";
|
||||
}
|
||||
case rawinput::SMX_DEDICAB: {
|
||||
|
||||
// get light name of SMX Dedicab device
|
||||
if (index < rawinput::SmxDedicabDevice::LIGHTS_COUNT) {
|
||||
return rawinput::SmxDedicabDevice::GetLightNameByIndex(index) + " (" + index_string + ")";
|
||||
}
|
||||
|
||||
return "Invalid SMX Dedicab Light (" + index_string + ")";
|
||||
}
|
||||
case rawinput::DESTROYED:
|
||||
return "Unplugged device (" + index_string + ")";
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user