Esempio n. 1
0
 @Override
 public void handleDirectInputChange(IOSignal oldS, IOSignal newS, long tickStamp) {
   if (oldS == newS) {
     // refresh, shouldn't happen
     return;
   }
   if (oldS.getState(0) && !newS.getState(0)) {
     this.toggleOutput(0, tickStamp);
   }
 }
Esempio n. 2
0
 @Override
 public void handleDirectInputChange(IOSignal oldS, IOSignal newS, long tickStamp) {
   // AND the inputs
   boolean and = newS.getState(0) && newS.getState(1) && newS.getState(2);
   this.updateOutput(IOSignal.factory(and), tickStamp);
 }