Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

BaseInputModule.DetermineMoveDirection

Switch to Manual
protected static function DetermineMoveDirection(x: float, y: float): EventSystems.MoveDirection;
protected static function DetermineMoveDirection(x: float, y: float, deadZone: float): EventSystems.MoveDirection;

Parameters

x X movement.
y Y movement.
deadZone Dead zone.

Description

Given an input movement, determine the best MoveDirection.