Fixed bug introduced when TouchPanel code was moved into TouchPanelState.