armory/Sources/armory/logicnode/ShowMouseNode.hx
2019-12-19 23:54:08 +01:00

16 lines
302 B
Haxe

package armory.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);
}
}