int setPinValue is the value on the input. Voltage on the pin depends on which button is pressed.
No, "int setPinValue" is not the value of the input.
int buttonPin = 3;
int setPinValue = digitalRead(buttonPin);
Execute this code, and setPinValue will contain a value that is defined by whether the voltage on pin 3 is above or below Vref/2.
Your code snippet did not show how setPinValue got a value. It also did not show haw parameter got a value.
If you want help here, you need to post more of your code. No body is going to make fun of you for having mistakes in your code. We assume that there are mistakes in the code, or you wouldn't have come here for help.
Either the problem is in your code, in the hardware (the way the stuff is wired up), or in your expectations of what the hardware is supposed to do, with respect to the software.
What board do you have that has a button soldered to an analog input? Digital input is for either/or devices like switches (buttons) that are either on or off. Analog input is for devices that can report multiple values, like temperature sensors, potentiometers, etc.