Navigation
API > API/Runtime > API/Runtime/ApplicationCore
FModifierKeysState stores the pressed state of keys that are commonly used as modifiers
| Name | FModifierKeysState |
| Type | class |
| Header File | /Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/GenericApplication.h |
| Include Path | #include "GenericPlatform/GenericApplication.h" |
Syntax
class FModifierKeysState
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| GenericPlatform/GenericApplication.h | |||
FModifierKeysState
(
const bool bInIsLeftShiftDown, |
Constructor. Events are immutable once constructed. | GenericPlatform/GenericApplication.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAreCapsLocked | uint16 | True if the Caps Lock key has been toggled to the enabled state. | GenericPlatform/GenericApplication.h | |
| bIsLeftAltDown | uint16 | True if the left alt key was down when this event occurred. | GenericPlatform/GenericApplication.h | |
| bIsLeftCommandDown | uint16 | True if the left command key was down when this event occurred. | GenericPlatform/GenericApplication.h | |
| bIsLeftControlDown | uint16 | True if the left control key was down when this event occurred. | GenericPlatform/GenericApplication.h | |
| bIsLeftShiftDown | uint16 | True if the left shift key was down when this event occurred. | GenericPlatform/GenericApplication.h | |
| bIsRightAltDown | uint16 | True if the right alt key was down when this event occurred. | GenericPlatform/GenericApplication.h | |
| bIsRightCommandDown | uint16 | True if the right command key was down when this event occurred. | GenericPlatform/GenericApplication.h | |
| bIsRightControlDown | uint16 | True if the right control key was down when this event occurred. | GenericPlatform/GenericApplication.h | |
| bIsRightShiftDown | uint16 | True if the right shift key was down when this event occurred. | GenericPlatform/GenericApplication.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AnyModifiersDown() |
GenericPlatform/GenericApplication.h | ||
bool AreCapsLocked() |
GenericPlatform/GenericApplication.h | ||
bool AreModifersDown
(
EModifierKey::Type ModiferKeys |
GenericPlatform/GenericApplication.h | ||
bool IsAltDown() |
Returns true if either alt key was down when this event occurred | GenericPlatform/GenericApplication.h | |
bool IsCommandDown() |
Returns true if either command key was down when this event occurred | GenericPlatform/GenericApplication.h | |
bool IsControlDown() |
Returns true if either control key was down when this event occurred | GenericPlatform/GenericApplication.h | |
bool IsLeftAltDown() |
Returns true if left alt key was down when this event occurred | GenericPlatform/GenericApplication.h | |
bool IsLeftCommandDown() |
Returns true if left command key was down when this event occurred | GenericPlatform/GenericApplication.h | |
bool IsLeftControlDown() |
Returns true if left control key was down when this event occurred | GenericPlatform/GenericApplication.h | |
bool IsLeftShiftDown() |
Returns true if left shift key was down when this event occurred | GenericPlatform/GenericApplication.h | |
bool IsRightAltDown() |
Returns true if right alt key was down when this event occurred | GenericPlatform/GenericApplication.h | |
bool IsRightCommandDown() |
Returns true if right command key was down when this event occurred | GenericPlatform/GenericApplication.h | |
bool IsRightControlDown() |
Returns true if right control key was down when this event occurred | GenericPlatform/GenericApplication.h | |
bool IsRightShiftDown() |
Returns true if right shift key was down when this event occurred | GenericPlatform/GenericApplication.h | |
bool IsShiftDown() |
Returns true if either shift key was down when this event occurred | GenericPlatform/GenericApplication.h |