Unfortunately you are not able to do this directly with hardware. Apple uses a custom piece of hardware on a modified iPhone for their tech demos. The ony way for us mere mortals to do it is is the iPhone/ iPod touch Software Developer Kit Simulator running on OSX.