Window.getTouchVelocity

機能/意味
Acquisition of touch coordinate movement speed (1.1.0 or later)
タイプ
Windowクラスのメソッド
構文
getTouchVelocity(id, x, y, speed)
引数
id  Specify the touch ID.
x  Returns the mouse coordinate movement speed in the X-axis direction.
y  Returns the mouse coordinate movement speed in the Y-axis direction.
speed  Returns the mouse coordinate movement speed.
戻り値
Returns whether the acquisition was successful or failed
説明
 Gets the current touch movement speed in pixel / sec.
 It is measured from the time it is pressed until it is released.
 Speed is measured for each ID to support multi-touch.
 Note that the measured speed information disappears when the method call of the Window.onTouchUp event ends.
参照
Window.getMouseVelocity