rhobiusvoid
rhobiusvoid
CC#
Created by rhobiusvoid on 3/23/2024 in #help
Steel Battalion controller lights
here's also the .cs file itself
4 replies
CC#
Created by rhobiusvoid on 3/23/2024 in #help
Steel Battalion controller lights
what do I need to add for breathing, and/or for the gradual light?
4 replies
CC#
Created by rhobiusvoid on 3/23/2024 in #help
Steel Battalion controller lights
the code block responsible for this is as follows
c#
public void Initialize()
{

int baseLineIntensity = 1;//just an average value for LED intensity
int maxLineIntensity = 15;//max light intensity
int emergencyLightIntensity = 15;//for stuff like eject,cockpit Hatch,Ignition, and Start

controller = new SteelBattalionController();
controller.Init(1);//50 is refresh rate in milliseconds
//set all buttons by default to light up only when you press them down

for (int i = 4; i < 4 + 30; i++)
{
if (i != (int)ButtonEnum.Eject)//excluding eject since we are going to flash that one
controller.AddButtonLightMapping((ButtonEnum)(i - 1), (ControllerLEDEnum)(i), true, baseLineIntensity);
}
c#
public void Initialize()
{

int baseLineIntensity = 1;//just an average value for LED intensity
int maxLineIntensity = 15;//max light intensity
int emergencyLightIntensity = 15;//for stuff like eject,cockpit Hatch,Ignition, and Start

controller = new SteelBattalionController();
controller.Init(1);//50 is refresh rate in milliseconds
//set all buttons by default to light up only when you press them down

for (int i = 4; i < 4 + 30; i++)
{
if (i != (int)ButtonEnum.Eject)//excluding eject since we are going to flash that one
controller.AddButtonLightMapping((ButtonEnum)(i - 1), (ControllerLEDEnum)(i), true, baseLineIntensity);
}
4 replies