30 lines
907 B
Python
30 lines
907 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
|
|
class TouchPadNode(LnxLogicTreeNode):
|
|
"""Virtual Touch Pad Controller"""
|
|
bl_idname = 'LNTouchPadNode'
|
|
bl_label = 'Touch Pad Controller'
|
|
bl_description = 'Virtual Touch Pad Controller'
|
|
lnx_category = 'Leenkx'
|
|
lnx_version = 1
|
|
|
|
def __init__(self):
|
|
array_nodes[str(id(self))] = self
|
|
|
|
|
|
def lnx_init(self, context):
|
|
self.add_input('LnxNodeSocketAction', 'In')
|
|
self.add_input('LnxDynamicSocket', 'Connection')
|
|
self.add_input('LnxIntSocket', 'Touchpad')
|
|
|
|
self.add_output('LnxNodeSocketAction', 'Out')
|
|
self.add_output('LnxDynamicSocket', 'Lx')
|
|
self.add_output('LnxDynamicSocket', 'Ly')
|
|
self.add_output('LnxDynamicSocket', 'Rx')
|
|
self.add_output('LnxDynamicSocket', 'Ry')
|
|
|
|
|
|
def register():
|
|
add_category('Leenkx', icon='ORIENTATION_CURSOR')
|
|
TouchPadNode.on_register() |