I'm a doctor, not a mechanic

UE3:PlayerInput (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
UT3 Object >> UIRoot >> Interaction >> Input >> PlayerInput

Contents

Package: 
Engine
Within class: 
PlayerController
Direct subclasses:
DebugCameraInput, GamePlayerInput
This class in other games:
U2, U2XMP, UDK, UE2Runtime, UT2003, UT2004

PlayerInput Object within playercontroller that manages player input. only spawned on client Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

[edit] Properties

[edit] Property group 'PlayerInput'

[edit] LookRightScale

Type: float

Modifiers: config

Yaw turn speed scaling

Default value: 300.0

[edit] LookUpScale

Type: float

Modifiers: config

pitch turn speed scaling

Default value: -250.0

[edit] MoveForwardSpeed

Type: float

Modifiers: config

move forward speed scaling

Default value: 1200.0

[edit] MoveStrafeSpeed

Type: float

Modifiers: config

strafe speed scaling

Default value: 1200.0

[edit] Internal variables

See PlayerInput internal variables.

[edit] Default values

See PlayerInput defaults.

[edit] Functions

[edit] Exec functions

[edit] ClearSmoothing

exec function ClearSmoothing ()


[edit] InvertMouse

exec function bool InvertMouse ()

DirectInput's mouse sampling total time

[edit] InvertTurn

exec function bool InvertTurn ()


[edit] Jump

exec function Jump ()


[edit] SetSensitivity

exec function SetSensitivity (float F)


[edit] SmartJump

exec function SmartJump ()


[edit] Events

[edit] PlayerInput

event PlayerInput (float DeltaTime)


[edit] Other instance functions

[edit] AdjustMouseSensitivity

function AdjustMouseSensitivity (float FOVScale)


[edit] CatchDoubleClickInput

function CatchDoubleClickInput ()


[edit] CheckForDoubleClickMove

function Actor.EDoubleClickDir CheckForDoubleClickMove (float DeltaTime)


[edit] DrawHUD

function DrawHUD (HUD H)

Hook called from HUD actor. Gives access to HUD and Canvas

[edit] PostProcessInput

function PostProcessInput (float DeltaTime)


[edit] PreProcessInput

function PreProcessInput (float DeltaTime)


[edit] ProcessInputMatching

final function ProcessInputMatching (float DeltaTime)

Iterates through all InputRequests on the PlayerController and checks to see if a new input has been matched, or if the entire match sequence should be reset.

Parameters:

  • DeltaTime - time since last tick

[edit] SmoothMouse

function float SmoothMouse (float aMouse, float DeltaTime, out byte SampleCount, int Index)

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

Parameters:

  • aMouse - is the mouse axis movement received from DirectInput
  • DeltaTime - is the tick time
  • SampleCount - is the number of mouse samples received from DirectInput
  • Index - is 0 for X axis, 1 for Y axis

Returns:

the smoothed mouse axis movement

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)

Personal tools