UPlayerInput::SmoothMouse

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

Choose your operating system:

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. @note 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