Navigation
API > API/Plugins > API/Plugins/CommonUI > API/Plugins/CommonUI/Input
Inheritance Hierarchy
- IInputProcessor
- TSharedFromThis
- FAnalogCursor
- FCommonAnalogCursor
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/Input/CommonAnalogCursor.h |
| Include | #include "Input/CommonAnalogCursor.h" |
Syntax
class FCommonAnalogCursor : public FAnalogCursor
Remarks
Analog cursor preprocessor that tastefully hijacks things a bit to support controller navigation by moving a hidden cursor around based on focus.
Introduces a separate focus-driven mode of operation, wherein the cursor is made invisible and automatically updated to be centered over whatever widget is currently focused (except the game viewport - we completely hide it then)
Variables
| Type | Name | Description | |
|---|---|---|---|
| const UCommonUIActionRouterBase & | ActionRouter | Knowingly unorthodox member reference to a UObject - ok because we are a subobject of the owning router and will never outlive it. | |
| ECommonInputType | ActiveInputMethod | ||
| bool | bIsAnalogMovementEnabled | ||
| bool | bShouldHandleRightAnalog |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCommonAnalogCursor
(
const UCommonUIActionRouterBase& InActionRouter |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| FVector2D | ClampPositionToViewport
(
const FVector2D& InPosition |
||
| TSharedRef< AnalogCursorT > | CreateAnalogCursor
(
const UCommonUIActionRouterBase& InActionRouter |
||
| EOrientation | DetermineScrollOrientation
(
const UWidget& Widget |
||
| UGameViewportClient * | |||
| void | HandleInputMethodChanged
(
ECommonInputType NewInputMethod |
||
| void | HideCursor () |
||
| void | Initialize () |
||
| bool | |||
| bool | A ridiculous function name, but we have this exact question in a few places. | ||
| bool | IsInViewport
(
const FVector2D& Position |
||
| bool | |||
| void | |||
| void | |||
| void | SetCursorMovementStick
(
EAnalogStick InCursorMovementStick |
||
| void | SetNormalizedCursorPosition
(
const FVector2D& RelativeNewPosition |
||
| void | ShouldHandleRightAnalog
(
bool bInShouldHandleRightAnalog |
||
| bool |
Overridden from FAnalogCursor
| Type | Name | Description | |
|---|---|---|---|
| int32 | |||
| bool | IsRelevantInput
(
const FKeyEvent& KeyEvent |
||
| bool | IsRelevantInput
(
const FAnalogInputEvent& AnalogInputEvent |
Overridden from IInputProcessor
| Type | Name | Description | |
|---|---|---|---|
| bool | HandleAnalogInputEvent
(
FSlateApplication& SlateApp, |
Analog axis input | |
| bool | HandleKeyDownEvent
(
FSlateApplication& SlateApp, |
Key down input | |
| bool | HandleKeyUpEvent
(
FSlateApplication& SlateApp, |
Key up input | |
| bool | HandleMouseButtonDownEvent
(
FSlateApplication& SlateApp, |
Mouse button press | |
| bool | HandleMouseButtonUpEvent
(
FSlateApplication& SlateApp, |
Mouse button release | |
| bool | HandleMouseMoveEvent
(
FSlateApplication& SlateApp, |
Mouse movement input | |
| void | Tick
(
const float DeltaTime, |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EShoulderButtonFlags |