LNXSDK/leenkx/blender/lnx/logicnode/input/LN_get_touch_movement.py
2025-01-22 16:18:30 +01:00

18 lines
675 B
Python

from lnx.logicnode.lnx_nodes import *
class GetTouchMovementNode(LnxLogicTreeNode):
"""Returns the movement values of the current touch event."""
bl_idname = 'LNGetTouchMovementNode'
bl_label = 'Get Touch Movement'
lnx_section = 'surface'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxFloatSocket', 'X Multiplier', default_value=-1.0)
self.add_input('LnxFloatSocket', 'Y Multiplier', default_value=-1.0)
self.add_output('LnxFloatSocket', 'X')
self.add_output('LnxFloatSocket', 'Y')
self.add_output('LnxFloatSocket', 'Multiplied X')
self.add_output('LnxFloatSocket', 'Multiplied Y')