16 lines
302 B
Haxe
16 lines
302 B
Haxe
package leenkx.logicnode;
|
|
|
|
class ShowMouseNode extends LogicNode {
|
|
|
|
public function new(tree: LogicTree) {
|
|
super(tree);
|
|
}
|
|
|
|
override function run(from: Int) {
|
|
var show: Bool = inputs[1].get();
|
|
var mouse = iron.system.Input.getMouse();
|
|
show ? mouse.show() : mouse.hide();
|
|
runOutput(0);
|
|
}
|
|
}
|