forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
17
leenkx/blender/lnx/logicnode/input/LN_get_touch_movement.py
Normal file
17
leenkx/blender/lnx/logicnode/input/LN_get_touch_movement.py
Normal file
@ -0,0 +1,17 @@
|
||||
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')
|
Reference in New Issue
Block a user