FSceneViewport::KeyState

Returns the state of the provided key.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FViewport::KeyState()

FSceneViewport::KeyState()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SceneViewport.h

Include

#include "Slate/SceneViewport.h"

Source

/Engine/Source/Runtime/Engine/Private/Slate/SceneViewport.cpp

Syntax

virtual bool KeyState
(
    FKey Key
) const

Remarks

Returns the state of the provided key.

Returns

true if the key is pressed, false otherwise

Parameters

Parameter

Description

Key

The name of the key to check