Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/APlayerController
Description
If true, then the GameViewportClient should call FlushPressedKeys on this controller when it loses focus. The default behavior here is to return true if the PlayerController is in any input mode other than GameAndUI
| Name | ShouldFlushKeysWhenViewportFocusChanges |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include Path | #include "GameFramework/PlayerController.h" |
virtual bool ShouldFlushKeysWhenViewportFocusChanges() const