How do I set fixed walking/running speed from joystick axis?

Hey Was Wondering If Anyone Found Out How to do this in c++