main.mouseButtons

dojo/main.mouseButtons

Properties

LEFT

Defined by: dojo/mouse

Numeric value of the left mouse button for the platform.

MIDDLE

Defined by: dojo/mouse

Numeric value of the middle mouse button for the platform.

RIGHT

Defined by: dojo/mouse

Numeric value of the right mouse button for the platform.

Methods

isButton(e,button)

Defined by dojo/mouse

Checks an event object for a pressed button

Parameter Type Description
e Event

Event object to examine

button Number

The button value (example: dojo.mouseButton.LEFT)

Returns: boolean

isLeft(e)

Defined by dojo/mouse

Checks an event object for the pressed left button

Parameter Type Description
e Event

Event object to examine

Returns: boolean

isMiddle(e)

Defined by dojo/mouse

Checks an event object for the pressed middle button

Parameter Type Description
e Event

Event object to examine

Returns: boolean

isRight(e)

Defined by dojo/mouse

Checks an event object for the pressed right button

Parameter Type Description
e Event

Event object to examine

Returns: boolean

© 2005–2015 The Dojo Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/main.mouseButtons.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部