UPlayerInput::SmoothMouse

Smooth mouse movement, because mouse sampling doesn't match up with tick time.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerInput.h

Include

#include "GameFramework/PlayerInput.h"

Source

/Engine/Source/Runtime/Engine/Private/UserInterface/PlayerInput.cpp

Syntax

virtual float SmoothMouse
(
    float aMouse,
    uint8 & SampleCount,
    int32 Index
)

Remarks

Smooth mouse movement, because mouse sampling doesn't match up with tick time.

: if we got sample event for zero mouse samples (so we didn't have to guess whether a 0 was caused by no sample occuring during the tick (at high frame rates) or because the mouse actually stopped)

Parameters

Parameter

Description

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