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

18 lines
543 B
Python
Raw Normal View History

2017-12-14 18:12:01 +01:00
import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class SetMouseLockNode(Node, ArmLogicTreeNode):
'''Set Mouse Lock node'''
bl_idname = 'LNSetMouseLockNode'
bl_label = 'Set Mouse Lock'
2020-08-07 19:00:46 +02:00
bl_icon = 'NONE'
2017-12-14 18:12:01 +01:00
def init(self, context):
self.inputs.new('ArmNodeSocketAction', 'In')
self.inputs.new('NodeSocketBool', 'Lock')
self.outputs.new('ArmNodeSocketAction', 'Out')
add_node(SetMouseLockNode, category=MODULE_AS_CATEGORY, section='mouse')