Navigation
API > API/Plugins > API/Plugins/CommonUI
CommonUI Viewport to reroute input to UI first. Needed to allow CommonUI to route / handle inputs.
| Name | UCommonGameViewportClient |
| Type | class |
| Header File | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonGameViewportClient.h |
| Include Path | #include "CommonGameViewportClient.h" |
Syntax
UCLASS (MinimalAPI, Within=Engine, Transient, Config=Engine)
class UCommonGameViewportClient : public UGameViewportClient
Inheritance Hierarchy
- FEditorViewportClient → FViewportClient → FCommonViewportClient → FGameplayViewportClient → UScriptViewportClient → UGameViewportClient → UCommonGameViewportClient
- FViewElementDrawer → FEditorViewportClient → FViewportClient → FCommonViewportClient → FGameplayViewportClient → UScriptViewportClient → UGameViewportClient → UCommonGameViewportClient
- FGCObject → FEditorViewportClient → FViewportClient → FCommonViewportClient → FGameplayViewportClient → UScriptViewportClient → UGameViewportClient → UCommonGameViewportClient
- FViewportClient → FCommonViewportClient → FGameplayViewportClient → UScriptViewportClient → UGameViewportClient → UCommonGameViewportClient
- UObjectBase → UObjectBaseUtility → UObject → UScriptViewportClient → UGameViewportClient → UCommonGameViewportClient
- FExec → UGameViewportClient → UCommonGameViewportClient
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UCommonGameViewportClient
(
FVTableHelper& Helper |
CommonGameViewportClient.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bUseVirtualPointerCursor | bool | CommonGameViewportClient.h | ||
| RerouteTouchDelegate | FTouchRerouteDelegate | CommonGameViewportClient.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
PRAGMA_ENABLE_DEPRECATION_WARNINGS FTouchRerouteDelegate::RegistrationType & GetRerouteTouchRegistration() |
CommonGameViewportClient.h | ||
FOnRerouteAxisDelegate & OnRerouteAxis() |
CommonGameViewportClient.h | ||
FOnRerouteInputDelegate & OnRerouteBlockedInput() |
CommonGameViewportClient.h | ||
FOnRerouteInputDelegate & OnRerouteInput() |
CommonGameViewportClient.h | ||
PRAGMA_DISABLE_DEPRECATION_WARNINGSFOnRerouteTouchInputDelegate & OnRerouteTouchInput() |
CommonGameViewportClient.h | ||
void SetUseVirtualPointerCursor
(
bool bEnabled |
When true, MapCursor redirects any non-None cursor type to Custom so the virtual pointer widget is always displayed. | CommonGameViewportClient.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void HandleRerouteAxis
(
FInputDeviceId DeviceId, |
Default Handler for Axis input. | CommonGameViewportClient.h | |
virtual void HandleRerouteInput
(
FInputDeviceId DeviceId, |
Default Handler for Key input. | CommonGameViewportClient.h | |
virtual void HandleRerouteTouch
(
FTouchId TouchId, |
Default Handler for Touch input. | CommonGameViewportClient.h | |
virtual void HandleRerouteTouch
(
FInputDeviceId DeviceId, |
CommonGameViewportClient.h |
Overridden from FViewportClient
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CapturedMouseMove
(
FViewport* InViewport, |
CommonGameViewportClient.h | ||
virtual bool InputAxis
(
const FInputKeyEventArgs& Args |
CommonGameViewportClient.h | ||
virtual bool InputKey
(
const FInputKeyEventArgs& EventArgs |
CommonGameViewportClient.h | ||
virtual bool InputTouch
(
FViewport*const InViewport, |
CommonGameViewportClient.h | ||
virtual TOptional< TSharedRef< SWidget > > MapCursor
(
FViewport* Viewport, |
CommonGameViewportClient.h | ||
virtual void MouseMove
(
FViewport* InViewport, |
CommonGameViewportClient.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTouchRerouteDelegate & GetRerouteTouchDelegate() |
CommonGameViewportClient.h |
Protected Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsKeyPriorityAboveUI
(
const FInputKeyEventArgs& EventArgs |
Console window & fullscreen shortcut have higher priority than UI | CommonGameViewportClient.h |