dojo/main.mouseButtons (version 1.10)

Property Summary

  • LEFTNumeric value of the left mouse button for the platform.
  • MIDDLENumeric value of the middle mouse button for the platform.
  • RIGHTNumeric value of the right mouse button for the platform.

Method Summary

  • isButton(e,button) Checks an event object for a pressed button
  • isLeft(e) Checks an event object for the pressed left button
  • isMiddle(e) Checks an event object for the pressed middle button
  • isRight(e) Checks an event object for the pressed right button

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
Error in the documentation? Can’t find what you are looking for? Let us know!