15 lines
		
	
	
		
			529 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			529 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | class GetTouchLocationNode(LnxLogicTreeNode): | ||
|  |     """Returns the location of the last touch event in screen coordinates (pixels).""" | ||
|  |     bl_idname = 'LNGetTouchLocationNode' | ||
|  |     bl_label = 'Get Touch Location' | ||
|  |     lnx_section = 'surface' | ||
|  |     lnx_version = 1 | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_output('LnxIntSocket', 'X') | ||
|  |         self.add_output('LnxIntSocket', 'Y') | ||
|  |         self.add_output('LnxIntSocket', 'Inverted X') | ||
|  |         self.add_output('LnxIntSocket', 'Inverted Y') |