Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UGameViewportClient
Description
Check a key event received by the viewport. If the viewport client uses the event, it should return true to consume it.
Virtual Inheritance
- FViewportClient::InputKey → UGameViewportClient::InputKey
| Name | InputKey |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h |
| Include Path | #include "Engine/GameViewportClient.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp |
virtual bool InputKey
(
const FInputKeyEventArgs & EventArgs
)
True to consume the key event, false to pass it on.
Parameters
| Name | Remarks |
|---|---|
| EventArgs | The Input event args. |