unreal.InputDeviceState
¶
- class unreal.InputDeviceState(input_device: InputDevices = Ellipsis, shift_key_down: bool = False, alt_key_down: bool = False, ctrl_key_down: bool = False, cmd_key_down: bool = False, keyboard: KeyboardInputDeviceState = Ellipsis, mouse: MouseInputDeviceState = Ellipsis)¶
Bases:
StructBase
Current state of physical input devices at a point in time. Assumption is that the state refers to a single physical input device, ie InputDevice field is a single value of EInputDevices and not a combination.
C++ Source:
Module: InteractiveToolsFramework
File: InputState.h
Editor Properties: (see get_editor_property/set_editor_property)
alt_key_down
(bool): [Read-Write] Is they keyboard ALT modifier key currently pressed downcmd_key_down
(bool): [Read-Write] Is they keyboard CMD modifier key currently pressed down (only on Apple devices)ctrl_key_down
(bool): [Read-Write] Is they keyboard CTRL modifier key currently pressed downinput_device
(InputDevices): [Read-Write] Which InputDevice member is valid in this statekeyboard
(KeyboardInputDeviceState): [Read-Write] Current state of Keyboard device, if InputDevice == EInputDevices::Keyboardmouse
(MouseInputDeviceState): [Read-Write] Current state of Mouse device, if InputDevice == EInputDevices::Mouseshift_key_down
(bool): [Read-Write] Is they keyboard SHIFT modifier key currently pressed down
- property alt_key_down: bool¶
[Read-Write] Is they keyboard ALT modifier key currently pressed down
- Type:
(bool)
- property cmd_key_down: bool¶
[Read-Write] Is they keyboard CMD modifier key currently pressed down (only on Apple devices)
- Type:
(bool)
- property ctrl_key_down: bool¶
[Read-Write] Is they keyboard CTRL modifier key currently pressed down
- Type:
(bool)
- property input_device: InputDevices¶
[Read-Write] Which InputDevice member is valid in this state
- Type:
- property keyboard: KeyboardInputDeviceState¶
[Read-Write] Current state of Keyboard device, if InputDevice == EInputDevices::Keyboard
- Type:
- property mouse: MouseInputDeviceState¶
[Read-Write] Current state of Mouse device, if InputDevice == EInputDevices::Mouse
- Type: