In the Midi spec, sustain is only on/off. You are unlikely to find a midi sustain pedal that does anything else. However continuous controller pedals are available.
If you already have a pedal with a potentiometer then this box for instance will probably do what you want. It obviously can't convert a switch type pedal into a continuous controller. Here is an article on converting a pedal. This google search will find you lots of useful info and links.
Quote:
If I had a midi-out pedal, I guess I'd need a sampler with 3 midi-in sockets (one for the piano I use (notes), and two for the pedals I'd use (sustain, distortion, other stuff if I assign them differently), and a midi-out socket to patch that through to my laptop, and a stereo jack-out to perform live.
Unless your chosen pedal has merge built in then you need some midi merge boxes to join everything together. A merge box takes two or more separate midi inputs and combines them into one output. They are fairly cheap and easily available.
_________________
I stopped fighting my inner demons. We're on the same side now.