forked from LeenkxTeam/LNXSDK
Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9
This commit is contained in:
26
leenkx/blender/lnx/logicnode/input/LN_set_virtual_button.py
Normal file
26
leenkx/blender/lnx/logicnode/input/LN_set_virtual_button.py
Normal file
@ -0,0 +1,26 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class SetVirtualButtonNode(LnxLogicTreeNode):
|
||||
bl_idname = 'LNSetVirtualButtonNode'
|
||||
bl_label = 'Set Virtual Button'
|
||||
lnx_section = 'virtual'
|
||||
lnx_version = 1
|
||||
|
||||
property0: bpy.props.EnumProperty(
|
||||
items=[('Keyboard', 'Keyboard', 'Keyboard'),
|
||||
('Mouse', 'Mouse', 'Mouse'),
|
||||
('Gamepad', 'Gamepad', 'Gamepad')],
|
||||
name='Input',
|
||||
default='Keyboard'
|
||||
)
|
||||
property1: bpy.props.StringProperty(name='Virtual Button', default='')
|
||||
property2: bpy.props.StringProperty(name='Physical Button', default='')
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
|
||||
def draw_buttons(self, context, layout):
|
||||
layout.prop(self, 'property0')
|
||||
layout.prop(self, 'property1')
|
||||
layout.prop(self, 'property2')
|
||||
Reference in New Issue
Block a user