Update Files
This commit is contained in:
		
							
								
								
									
										30
									
								
								leenkx/blender/lnx/logicnode/custom/LN_touch_pad.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								leenkx/blender/lnx/logicnode/custom/LN_touch_pad.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| 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() | ||||
		Reference in New Issue
	
	Block a user