Update Files
This commit is contained in:
15
leenkx/Sources/leenkx/logicnode/ShowMouseNode.hx
Normal file
15
leenkx/Sources/leenkx/logicnode/ShowMouseNode.hx
Normal file
@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user