Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Application
Inheritance Hierarchy
- IInputProcessor
- TSharedFromThis
- FAnalogCursor
- FCommonAnalogCursor
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/Application/AnalogCursor.h |
| Include | #include "Framework/Application/AnalogCursor.h" |
Syntax
class FAnalogCursor :
public IInputProcessor,
public TSharedFromThis< FAnalogCursor >
Remarks
A class that simulates a cursor driven by an analog stick.
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | Acceleration | Current settings | |
| FVector2D | CurrentOffset | Current sub-pixel offset | |
| FVector2D | CurrentSpeed | Current speed of the cursor | |
| float | DeadZone | ||
| float | MaxSpeed | ||
| AnalogCursorMode::Type | Mode | ||
| float | StickySlowdown |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Dtor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | CalculateTickedCursorPosition
(
const float DeltaTime, |
||
| void | Set the cached analog stick declinations to 0 | ||
| const FVector2D & | GetAnalogValues
(
EAnalogStick Stick |
Getter | |
| int32 | |||
| bool | IsRelevantInput
(
const FPointerEvent& MouseEvent |
||
| bool | IsRelevantInput
(
const FAnalogInputEvent& AnalogInputEvent |
||
| bool | IsRelevantInput
(
const FKeyEvent& KeyEvent |
||
| bool | IsRelevantInput
(
const FInputEvent& InputEvent |
||
| void | SetAcceleration
(
float NewAcceleration |
||
| void | SetDeadZone
(
float NewDeadZone |
||
| void | SetMaxSpeed
(
float NewMaxSpeed |
||
| void | SetMode
(
AnalogCursorMode::Type NewMode |
||
| void | SetStickySlowdown
(
float NewStickySlowdown |
||
| void | UpdateCursorPosition
(
FSlateApplication& SlateApp, |
Overridden from IInputProcessor
| Type | Name | Description | |
|---|---|---|---|
| const TCHAR * | GetDebugName () |
Debug name for logging purposes | |
| bool | HandleAnalogInputEvent
(
FSlateApplication& SlateApp, |
Analog axis input | |
| bool | HandleKeyDownEvent
(
FSlateApplication& SlateApp, |
Key down input | |
| bool | HandleKeyUpEvent
(
FSlateApplication& SlateApp, |
Key up input | |
| bool | HandleMouseMoveEvent
(
FSlateApplication& SlateApp, |
Mouse movement input | |
| void | Tick
(
const float DeltaTime, |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | UpdateCursorPosition
(
FSlateApplication& SlateApp, |
FAnalogCursor now updates cursor position based on user, not the hardware cursor specifically. |