Detecting 0 movement speed?

I’m trying to make it so that I can detect when the play isn’t moving.

using UnityEngine;
using System.Collections;

public class PlayerMovement : MonoBehaviour {
	public float moveSpeed;
	private float maxSpeed = 5f;

	private Vector3 input;


	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	input = new Vector3(Input.GetAxisRaw ("Horizontal"), 0, Input.GetAxisRaw ("Vertical"));
	if(GetComponent<Rigidbody>().velocity.magnitude < maxSpeed)
	{
	GetComponent<Rigidbody>().AddForce(input * moveSpeed); 
	}

	if(input = (0,0,0))
	{
	}

	}
}

This is the code that’s giving issue

if(input = (0,0,0))
    	{
    	}

Since input is a Vector3, you’d want something like this:

if (input == Vector3.zero)
{
}

If that gives you trouble (due to very small numbers in your input vector instead of 0), you could do something like this:

if (input.magnitude < 0.001)
{
   // input is nearly zero...
}

You might have to play with the right threshold (the 0.001)…