Drive by wire question

I have a question about the drive by wire system. Does the drive by wire pedal send a signal to the computer then to the drive by wire throttle body? Or does the pedal send a signal to the throttle body first, then to the computer via a throttle position sensor?

What I would like to do is use my old stock gas pedal connected to a cable to operate a gen3 hemi stock system. I would use as the stock computer and accessories as much as possible while I try to keep the interior of my car "stock" (using the old stuff) as possible.