LNXSDK/leenkx/blender/lnx/logicnode/input/LN_get_touch_location.py

15 lines
529 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
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')