This is not the solution you were looking for....
back in the Basic Stamp days......
We would use RC-TIME to make a fake analog to digital converter.
resistor and cap create a frequency.
GPIO pin reads frequency.
Offers a possible way to have multiple buttons on one GPIO pin.