When working with Studio One 4.6.0 and Windows 10 I cannot record and hear my sustain pedal (Yamaha).
I use Steinberg UR22. I can see the sustain pedal working in the midi monitor. It shows values from 0 to 127 in steps of 16.
I do not have any problems with cubase.