FSceneViewport::KeyState

Returns the state of the provided key.

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss