Class cc.Touch

Class Summary
Constructor Attributes Constructor Name and Description
 

Method Summary

Class Detail

cc.Touch()

Method Detail

  • ctor(x, y, id)
    Constructor
    Parameters:
    x
    y
    id
  • {cc.Point} getDelta()
    Returns:
    {cc.Point}
  • {Number} getId()
    Returns:
    {Number}
  • {Number} getID()
    Returns:
    {Number}
  • {cc.Point} getLocation()
    get point of touch
    Returns:
    {cc.Point}
  • {cc.Point} getPreviousLocation()
    Returns:
    {cc.Point}
  • setTouchInfo(id, x, y)
    set information to touch
    Parameters:
    {Number} id
    {Number} x
    {Number} y