armory/blender/arm/logicnode/input/LN_set_mouse_lock.py

16 lines
555 B
Python
Raw Normal View History

2017-12-14 18:12:01 +01:00
from arm.logicnode.arm_nodes import *
class SetMouseLockNode(ArmLogicTreeNode):
2020-09-23 22:12:25 +02:00
"""Deprecated. Is recommended to use 'Set Cursor State' node instead."""
2017-12-14 18:12:01 +01:00
bl_idname = 'LNSetMouseLockNode'
bl_label = 'Set Mouse Lock'
arm_version = 1
2017-12-14 18:12:01 +01:00
def init(self, context):
super(SetMouseLockNode, self).init(context)
2020-09-08 21:49:02 +02:00
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketBool', 'Lock')
self.add_output('ArmNodeSocketAction', 'Out')
2017-12-14 18:12:01 +01:00
add_node(SetMouseLockNode, category=PKG_AS_CATEGORY, section='mouse')