public Reaction(outputevent cause, byte control, int sceneindex) { this.control = control; this.cause = cause; this.source = SpecialSourceType.desktop1; this.sceneindex = sceneindex; }
public Reaction(outputevent cause, byte control, SpecialSourceType source) { this.control = control; this.cause = cause; this.source = source; this.sceneindex = 0; }
public byte GetOutputToEvent(outputevent cause, int sceneindex) { foreach (Reaction output in this.outputbindings) { if (cause == output.cause && sceneindex == output.sceneindex) { return(output.control); } } return(0); }
public byte GetOutputToEvent(outputevent cause, SpecialSourceType source) { foreach (Reaction output in this.outputbindings) { if (cause == output.cause && source == output.source) { return(output.control); } } return(0); }
public byte GetOutputForEvent(outputevent cause, int sceneindex) //Not used atm, never know when you might need it... { foreach (Reaction output in this.outputbindings) { if (cause == output.cause && sceneindex == output.sceneindex) { return(output.control); } } return(0); }
public byte GetOutputForEvent(outputevent cause) { foreach (Reaction output in this.outputbindings) { if (cause == output.cause) { return(output.control); } } return(0); }