Is there a known way to map all possible analog stick values to buttons?

I'm having to develop my own Gamecube controller so I can play Melee without debilitating pain. I can't use an analog stick at all(that's one of the things that aggravates my wrists) and need a way to simulate an analog stick with buttons. Is there a known way to map all analog stick outputs to key presses? I'm open to any ideas you have. If not, I will have to develop a system for it. I can do that, but...I'd prefer not to lol.
EDIT: I looked up some of the smash box controllers, and I might go with the modifier system they use. I was hoping for a system that could emulate all of the available positions an analog stick could be in.
Pictures about "Is there a known way to map all possible analog stick values to buttons?"



RIGHT ANALOG STICK Of Gamepad Acting As ABXY On PC!!! Easy Way to Fix it!!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Tim Samuel, Andrea Piacquadio, Andrea Piacquadio, Andrea Piacquadio