LNXSDK/leenkx/blender/lnx/logicnode/input/LN_on_input_map.py

16 lines
549 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class OnInputMapNode(LnxLogicTreeNode):
"""Send a signal if any input map key is started or released."""
bl_idname = 'LNOnInputMapNode'
bl_label = 'On Input Map'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxStringSocket', 'Input Map')
self.add_output('LnxNodeSocketAction', 'Started')
self.add_output('LnxNodeSocketAction', 'Released')
self.add_output('LnxFloatSocket', 'Value')
self.add_output('LnxStringSocket', 'Key Pressed')