APlayerController::GetInputAnalogStickState

Retrieves the X and Y displacement of the given analog stick.