you need 3 wires for each pot like is explained on Leo's site image and since you just need 4 buttons you can connetc the button matrix pins to ground (with the switch in the middle of course)


"When you plan revenge best dig two graves" Confucius
"They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety" Benjamin Franklin