Use Canvas Buttons as Input Axis

I’m creating a canvas UI with 2 left and right directional buttons. I want this to simulate the horizontal axis that the input manager usually handles (with gravity, dead, sensitivity, etc).

If anybody knows how to use buttons on a canvas as an axis, your help is appreciated.

check my answer below here there is a scene sample that do that