TouchScreen
Last updated
Was this helpful?
Last updated
Was this helpful?
The TouchScreen class provides information about the physical touch screen on devices which provide one. This class can be used on Android, iOS, and touch-enabled Windows RT apps. An instance of the TouchScreen class is automatically instantiated and available through the InputManager, so you do not need to instantiate your own. For more information, see the .
Note: This class does not work for touch screens for Windows 7. Touch screens for Windows 7 are not exposed to the XNA API. You will need to read touch screen input manually. For more information, see this link:
The FlatRedBall TouchScreen provides a thin wrapper and access to the underlying provided by XNA. If you are comfortable using the XNA-provided GestureSample class, you can set the TouchScreen's property to false. Otherwise, you will want to loop through the list and perform actions appropriately.
Did this article leave any questions unanswered? Post any question in our for a rapid response.