armory/blender/arm/logicnode/input/LN_get_cursor_state.py
2021-07-20 20:53:37 +02:00

23 lines
769 B
Python

import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class GetCursorStateNode(ArmLogicTreeNode):
"""Returns the state of the mouse cursor.
@seeNode Set Cursor State
@output Is Hidden Locked: `true` if the mouse cursor is both hidden and locked.
@output Is Hidden: `true` if the mouse cursor is hidden.
@output Is Locked: `true` if the mouse cursor is locked."""
bl_idname = 'LNGetCursorStateNode'
bl_label = 'Get Cursor State'
arm_section = 'mouse'
arm_version = 1
def arm_init(self, context):
self.outputs.new('ArmBoolSocket', 'Is Hidden Locked')
self.outputs.new('ArmBoolSocket', 'Is Hidden')
self.outputs.new('ArmBoolSocket', 'Is Locked')