<?xml version='1.0'?>
<?xml:stylesheet type="text/xsl" href="function.xsl" ?>
<function-list>
  <function>
    <name>InputMouseDown Event</name>
    <description>This event is fired when the user places the stylus on the screen.</description>
    <syntax>Game1_InputMouseDown(ByVal x As Integer, ByVal y As Integer)</syntax>
    <param-list>
      <param>
        <name>x</name>
	    <description>Integer. X coordinate of stylus.</description>
      </param>
      <param>
        <name>y</name>
	    <description>Integer. Y coordinate of stylus.</description>
      </param>
    </param-list>
	<remarks></remarks>
	<example>
Public Sub Game1_InputMouseDown(ByVal x As Integer, ByVal y As Integer)
    ' set an angle of soldier sprite towards stylus tap
    Dim iSoldierX As Integer, iSoldierY As Integer
    Game1.SpriteGetPositionEx SPRITE_SOLDIER, 8, iSoldierX, iSoldierY
    m_iLastAngleSoldier = Game1.UtilGetAngleBetween(iSoldierX, iSoldierY, x, y)
    m_bMoving = True
End Sub
	</example>
  </function>
</function-list>
