Class Index | File Index

Classes


Class tank.event.MouseEvent


Defined in: coderobot.event.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
鼠标事件对象
Method Summary
Method Attributes Method Name and Description
 
获取鼠标点击button
 
获取鼠标相对canvas位置
Class Detail
tank.event.MouseEvent(options)
鼠标事件对象
Parameters:
{Object} options
初始化参数
Returns:
MouseEvent实例
Method Detail
{String} getButton()
获取鼠标点击button
Returns:
{String} 点击button

{Array} getPos()
获取鼠标相对canvas位置
Returns:
{Array} 鼠标相对canvas位置


Copyright © 2012 Tencent AlloyTeam . All Rights Reserved.