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')