void ImageSwitcherBox::Process()
{
time = bbGetInputTime();
+ _on = bbGetInputOn();
if(myTimer == NULL)
{
myTimer->Start(time);
oldTime = time;
}
- else if(oldTime != time && myTimer != NULL)
+
+ if(oldTime != time && myTimer !=NULL)
{
myTimer->Stop();
myTimer->Start(time);
oldTime = time;
}
-
+
if(change == false)
{
bbSetOutputOut(bbGetInputIn1());
{
bbSetOutputOut(bbGetInputIn2());
change = false;
- }
+ }
}
void ImageSwitcherBox::CreateWidget(wxWindow* parent)
{
change = false;
time = 500;
oldTime = 500;
+ _on = false;
}
void ImageSwitcherBox::bbUserInitializeProcessing()
{