.. role:: ts-api-decorator

###############
TouchInputEvent
###############

.. js:module:: Event
   :noindex:

.. container:: ts-api-section

   .. js:class:: TouchInputEvent



.. container:: api-index-section

   .. rubric:: Accessors

   .. rst-class:: api-index-list-item api-kind-accessor api-parent-kind-class

   * :js:attr:`~Event.TouchInputEvent.viewKey`



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-class

   * :js:meth:`~Event.TouchInputEvent.getButtons`
   * :js:meth:`~Event.TouchInputEvent.getDate`
   * :js:meth:`~Event.TouchInputEvent.getEventType`
   * :js:meth:`~Event.TouchInputEvent.getHandled`
   * :js:meth:`~Event.TouchInputEvent.getId`
   * :js:meth:`~Event.TouchInputEvent.getPosition`
   * :js:meth:`~Event.TouchInputEvent.setHandled`





------------

Accessors
=========

.. container:: ts-api-section

   .. js:function:: viewKey()
      :noindex:



      Get the ViewKey this event is associated with.


      :rtype: ViewKey



Methods
=======

.. rst-class:: ts-api-section

getButtons
----------

.. js:method:: TouchInputEvent.getButtons()



   gets the mouse buttons currently pressed with this event

   :returns: the mouse buttons currently pressed for this event


   :rtype: Buttons

.. rst-class:: ts-api-section

getDate
-------

.. js:method:: TouchInputEvent.getDate()



   Gets the Date this event occurred

   :returns: the event Date


   :rtype: Date

.. rst-class:: ts-api-section

getEventType
------------

.. js:method:: TouchInputEvent.getEventType()



   gets the event type

   :returns: the type of touch event


   :rtype: TouchInputType

.. rst-class:: ts-api-section

getHandled
----------

.. js:method:: TouchInputEvent.getHandled()



   Gets the handled state of the event

   :returns: whether the event has been handled


   :rtype: boolean

.. rst-class:: ts-api-section

getId
-----

.. js:method:: TouchInputEvent.getId()



   gets the id this event

   :returns: the unique identifier for this touch


   :rtype: number

.. rst-class:: ts-api-section

getPosition
-----------

.. js:method:: TouchInputEvent.getPosition()



   gets the window position of the mouse pointer for this event

   :returns: the mouse position for this event


   :rtype: Point2

.. rst-class:: ts-api-section

setHandled
----------

.. js:method:: TouchInputEvent.setHandled( handled)

   :param handled: Indicates whether this event has been handled.
   :type handled: boolean


   Sets the handled state of the event. When an event has been handled it will not propagate any further


   :rtype: void

