Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View File

@ -0,0 +1,42 @@
package leenkx.logicnode;
class MergedVirtualButtonNode extends LogicNode {
public var property0: String;
public var property1: String;
public function new(tree: LogicTree) {
super(tree);
tree.notifyOnUpdate(update);
}
function update() {
var vb = iron.system.Input.getVirtualButton(property1);
if (vb == null) return;
var b = false;
switch (property0) {
case "started":
b = vb.started;
case "down":
b = vb.down;
case "released":
b = vb.released;
}
if (b) runOutput(0);
}
override function get(from: Int): Dynamic {
var vb = iron.system.Input.getVirtualButton(property1);
if (vb == null) return false;
switch (property0) {
case "started":
return vb.started;
case "down":
return vb.down;
case "released":
return vb.released;
}
return false;
}
}