Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/InputState.h |
| Include | #include "InputState.h" |
Syntax
struct FInputDeviceState
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAltKeyDown | Is they keyboard ALT modifier key currently pressed down | |
| bool | bCmdKeyDown | Is they keyboard CMD modifier key currently pressed down (only on Apple devices) | |
| bool | bCtrlKeyDown | Is they keyboard CTRL modifier key currently pressed down | |
| bool | bShiftKeyDown | Keyboard modifiersIs they keyboard SHIFT modifier key currently pressed down | |
| EInputDevices | InputDevice | Which InputDevice member is valid in this state | |
| FKeyboardInputDeviceState | Keyboard | Current state of Keyboard device, if InputDevice == EInputDevices::Keyboard | |
| FMouseInputDeviceState | Mouse | Current state of Mouse device, if InputDevice == EInputDevices::Mouse |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | IsAltKeyDown
(
const FInputDeviceState& InputState |
||
| bool | IsCmdKeyDown
(
const FInputDeviceState& InputState |
||
| bool | IsCtrlKeyDown
(
const FInputDeviceState& InputState |
||
| bool | IsFromDevice
(
EInputDevices DeviceType |
||
| bool | IsShiftKeyDown
(
const FInputDeviceState& InputState |
Utility functions to pass as lambdas | |
| void | SetModifierKeyStates
(
bool bShiftDown, |
Update keyboard modifier key states |