Inheritance |
|
hou.UIEvent
provides information to interact with user input and is used with Python states. You do not instantiate this type of object yourself.
Methods ¶
device()
→ hou.UIEventDevice
Returns an object containing input-device-specific event data.
For example, if this is a mouse click event, you can use event.device().mouseX()
to get the X coordinate in screen space, and event.device().isLeftButton()
to check whether the left mouse button was pressed.
if ui_event.device().isLeftButton(): ...
hasQueuedEvents()
→ bool
Returns true if this event contains queued device events.
queuedEvents()
→ list
of hou.UIEventDevice
If hou.UIEvent.hasQueuedEvents returns True, this method returns the list of queued input device events.
value()
→ obj
Returns the value
payload of this event. You can tell the type of this value by calling hou.UIEvent.valueType.
valueType()
→ hou.uiEventValueType
Returns an enum value corresponding to the event value’s type, or hou.uiEventValueType.NoType
if the event contains no single scalar value.
reason()
→ hou.uiEventReason
For events related to state changes, returns an enum value representing the type of state change that triggered the event.
See also |