Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/InteractiveToolsFramework/Public/InputState.h |
Include |
#include "InputState.h" |
struct FInputDeviceState
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.
Name | Description | ||
---|---|---|---|
|
bAltKeyDown |
Is they keyboard ALT modifier key currently pressed down |
|
|
bCmdKeyDown |
Is they keyboard CMD modifier key currently pressed down (only on Apple devices) |
|
|
bCtrlKeyDown |
Is they keyboard CTRL modifier key currently pressed down |
|
|
bShiftKeyDown |
Keyboard modifiersIs they keyboard SHIFT modifier key currently pressed down |
|
|
InputDevice |
Which InputDevice member is valid in this state |
|
|
Keyboard |
Current state of Keyboard device, if InputDevice == EInputDevices::Keyboard |
|
|
Mouse |
Current state of Mouse device, if InputDevice == EInputDevices::Mouse |
Name | Description | |
---|---|---|
|
FInputDeviceState() |
Name | Description | ||
---|---|---|---|
|
IsAltKeyDown ( |
||
|
IsCmdKeyDown ( |
||
|
IsCtrlKeyDown ( |
||
|
IsFromDevice ( |
||
|
IsShiftKeyDown ( |
Utility functions to pass as lambdas |
|
|
SetModifierKeyStates |
Update keyboard modifier key states |