Previous ION Java User's Guide: ION Java Class and Method Reference Next

getDownButtons()

The getDownButtons() method returns the current state of the mouse buttons in the canvas. The return value is a bit field where bit 1 is mouse button 1, bit 2 is mouse button 2 and bit three is mouse button 3. If a bit is set, the specific mouse button is down.

Syntax

public final int getDownButtons()

Arguments

None.

Exceptions

None.

Example

int iState = getDownButtons();  

  IDL Online Help (March 06, 2007)