Methods

setScrollData ( scrollX, scrollY )

Sets scroll data.
设置滚动数据。

getScrollX ( ) Number

Returns the x axis scroll value.
返回X轴滚动值。

getScrollY ( ) Number

Returns the y axis scroll value.
返回Y轴滚动值。

setLocation ( x, y )

Sets cursor location.
设置光标位置。

getLocation ( ) Vec2

Returns cursor location.
返回光标位置。

getLocationInView ( ) Vec2

Returns the current cursor location in screen coordinates.
返回当前光标所在屏幕坐标位置。

getDelta ( ) Vec2

Returns the delta distance from the previous location to current location.
返回到当前位置的前一位置的三角洲距离

getDeltaX ( ) Number

Returns the X axis delta distance from the previous location to current location.
返回到当前位置的前一位置的坐标X轴三角洲的距离

getDeltaY ( ) Number

Returns the Y axis delta distance from the previous location to current location.
返回到当前位置的前一位置的坐标Y轴三角洲的距离

setButton ( button )

Sets mouse button.
设置鼠标按钮。

getButton ( ) Number

Returns mouse button.
返回鼠标按钮。

getLocationX ( ) Number

Returns location X axis data.
返回位置×轴数据。

getLocationY ( ) Number

Returns location Y axis data.
返回位置Y轴数据。