Last time I got hurt badly, I messed up my arm. I took a couple days off and gave up and went riding. It took a few hours figure out which ways I could move my arm to avoid screaming pain. I never really got the hang of it but I kept riding and just accepted the pain. Another time I broke my wrist and had to have a second cast made cause i wrecked the first one while trying to shift gears.
I don't know what I'd do if I hurt a leg badly. I suppose if your leg won't move, it can just hang there. I mean take off the pedal and use your good leg with a clipless pedal. Pobably won't go very fast but it's riding.