Moving using controller stick question

Trying to make it so -1 on the axis moves the player left and 1 moves the player right but my script doesnt appear to do anything. I was never able to figure out how to properly do controller support for my last game but I really want to include it this time because people seemed to really want it. I can do the buttons easy enough but I don’t understand the axis’s. What am I doing wrong?

			if(Input.GetButton("Horizontal"))
			{
				if(Input.GetAxisRaw("Horizontal") < 0)
				{
					Debug.Log("Left");
					vel.x = -walkSpeed;
				}
				if(Input.GetAxisRaw("Horizontal") > 0)
				{
					Debug.Log("Right");
					vel.x = walkSpeed;
				}
			}else
			{
				vel.x = 0;
			}

My project settings for “Horizontal” Are currently the default ones found when creating a new project in unity.

This would be simpler:

vel.x = Input.GetAxis("Horizontal");
if(vel.x != 0)
    vel.x = (vel.x < 0) ? -walkspeed : walkspeed

This assumes that the “Horizontal” axis is registered in Unity (Edit->Project Settings->Input), and of course that the result (vel.x) actually does something to your object