protected override void Draw(GameTime gameTime)
{
graphics.GraphicsDevice.Clear(Color.CornflowerBlue);
spriteBatch.Begin();
//
-
location.TryGetPreviousLocation(out previousLocation)
foreach (TouchLocation location in touches)
{
switch (location.State)
{
case TouchLocationState.Pressed:
//If the screen is pressed draw a string at pressed location.
spriteBatch.
DrawString(Content.
Load<SpriteFont>
("SpriteFont1"),
"pressed " + location.
ToString(),
new Vector2
(location.
Position.
X,location.
Position.
Y), Color.
Black);
break;
case TouchLocationState.Moved:
break;
case TouchLocationState.Released:
break;
}
}
spriteBatch.
DrawString(Content.
Load<SpriteFont>
("SpriteFont1"),
"ahhhho World!",
new Vector2
(10,
10), Color.
Black);
spriteBatch.End();
base.Draw(gameTime);
}