The Wii U controller contains the same motion tracking hardware as a Nintendo Wiimote, which means the system can track its relative position at all times, and update the controller screen depending on its orientation.
FORBES: Hands On With The Nintendo Wii U