FNavigationConfig

This class is used to control which FKeys and analog axis should move focus.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Application/NavigationConfig.h

Include

#include "Framework/Application/NavigationConfig.h"

Syntax

class FNavigationConfig : public TSharedFromThis< FNavigationConfig >

Remarks

This class is used to control which FKeys and analog axis should move focus.

Variables

Name Description

Public variable

FKey

 

AnalogHorizontalKey

Which Axis Key controls horizontal navigation

Public variable

float

 

AnalogNavigationHorizontalThreshold

Public variable

float

 

AnalogNavigationVerticalThreshold

Public variable

FKey

 

AnalogVerticalKey

Which Axis Key controls vertical navigation

Public variable

bool

 

bAnalogNavigation

Should we respect the analog stick for navigation.

Public variable

bool

 

bKeyNavigation

Should we respect keys for navigation.

Public variable

bool

 

bTabNavigation

Should the Tab key perform next and previous style navigation.

Public variable

TMap< FKey, EUI...

 

KeyEventRules

Digital key navigation rules.

Protected variable

TMap< int, FUse...

 

UserNavigationState

Navigation state that we store per user.

Constructors

Name Description

Public function

FNavigationConfig()

Ctor

Destructors

Name Description

Public function Virtual

~FNavigationConfig()

Dtor

Functions

Name Description

Public function Virtual Const

EUINavigatio...

 

GetNavigationActionFromKey

(
    const FKeyEvent& InKeyEvent
)

Returns the navigation action corresponding to a key event.

Public function Virtual

EUINavigatio...

 

GetNavigationDirectionFromAnalog

(
    const FAnalogInputEvent& InAnalogE...
)

Gets the navigation direction from a given analog event.

Protected function Virtual

EUINavigatio...

 

GetNavigationDirectionFromAnalogInternal

(
    const FAnalogInputEvent& InAnalogE...
)

Gets the navigation direction from the analog internally.

Public function Virtual Const

EUINavigatio...

 

GetNavigationDirectionFromKey

(
    const FKeyEvent& InKeyEvent
)

Gets the navigation direction from a given key event.

Protected function Virtual Const

float

 

GetRepeatRateForPressure

(
    float InPressure,
    int32 InRepeats
)

Gets the repeat rate of the navigation based on the current pressure being applied.

Public function Virtual

void

 

OnNavigationChangedFocus

(
    TSharedPtr< SWidget > OldWidget,
    TSharedPtr< SWidget > NewWidget,
    FFocusEvent FocusEvent
)

Notified when navigation has caused a widget change to occur

Public function Virtual

void

 

OnRegister()

Called when the navigation config is registered with Slate Application

Public function Virtual

void

 

OnUnregister()

Called when the navigation config is registered with Slate Application

Public function Virtual

void

 

OnUserRemoved

(
    int32 UserIndex
)

Notified when users are removed from the system, good chance to clean up any user specific state.

Deprecated Functions

Name Description

Public function Virtual Const

EUINavigatio...

 

GetNavigationActionForKey

(
    const FKey& InKey
)

GetNavigationActionForKey doesn't handle multiple users properly, use GetNavigationActionFromKey instead

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss