com.jogamp.newt.event
public class MouseEvent extends InputEvent
Modifier and Type | Field and Description |
---|---|
static int |
BUTTON_NUMBER |
static int |
BUTTON1 |
static int |
BUTTON2 |
static int |
BUTTON3 |
static int |
BUTTON4 |
static int |
BUTTON5 |
static int |
BUTTON6 |
static int |
EVENT_MOUSE_CLICKED |
static int |
EVENT_MOUSE_DRAGGED |
static int |
EVENT_MOUSE_ENTERED |
static int |
EVENT_MOUSE_EXITED |
static int |
EVENT_MOUSE_MOVED |
static int |
EVENT_MOUSE_PRESSED |
static int |
EVENT_MOUSE_RELEASED |
static int |
EVENT_MOUSE_WHEEL_MOVED |
ALT_GRAPH_MASK, ALT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, CONFINED_MASK, consumedTag, CTRL_MASK, INVISIBLE_MASK, META_MASK, SHIFT_MASK
Constructor and Description |
---|
MouseEvent(int eventType,
Object source,
long when,
int modifiers,
int[] x,
int[] y,
float[] pressure,
int[] pointerids,
int clickCount,
int button,
int rotation) |
MouseEvent(int eventType,
Object source,
long when,
int modifiers,
int x,
int y,
int clickCount,
int button,
int rotation) |
Modifier and Type | Method and Description |
---|---|
int |
getButton() |
int |
getClickCount() |
static int |
getClickTimeout() |
static String |
getEventTypeString(int type) |
int |
getPointerCount() |
int |
getPointerId(int index) |
float |
getPressure() |
float |
getPressure(int index) |
int |
getWheelRotation()
Usually a wheel rotation of > 0 is up,
and < 0 is down.
However, on some OS this might be flipped due to the OS default behavior. |
int |
getX() |
int |
getX(int index) |
int |
getY() |
int |
getY(int index) |
String |
toString() |
getButtonsDown, getModifiers, isAltDown, isAltGraphDown, isButton1Down, isButton2Down, isButton3Down, isConfined, isControlDown, isInvisible, isMetaDown, isShiftDown
getAttachment, getEventType, getWhen, isSystemEvent, setAttachment, toHexString, toHexString
getSource
public static final int BUTTON1
public static final int BUTTON2
public static final int BUTTON3
public static final int BUTTON4
public static final int BUTTON5
public static final int BUTTON6
public static final int BUTTON_NUMBER
public static final int EVENT_MOUSE_CLICKED
public static final int EVENT_MOUSE_ENTERED
public static final int EVENT_MOUSE_EXITED
public static final int EVENT_MOUSE_PRESSED
public static final int EVENT_MOUSE_RELEASED
public static final int EVENT_MOUSE_MOVED
public static final int EVENT_MOUSE_DRAGGED
public static final int EVENT_MOUSE_WHEEL_MOVED
public MouseEvent(int eventType, Object source, long when, int modifiers, int x, int y, int clickCount, int button, int rotation)
public MouseEvent(int eventType, Object source, long when, int modifiers, int[] x, int[] y, float[] pressure, int[] pointerids, int clickCount, int button, int rotation)
public static final int getClickTimeout()
public int getPointerCount()
public int getPointerId(int index)
public int getButton()
public int getClickCount()
public int getX()
public int getY()
public int getX(int index)
getPointerId(index)
public int getY(int index)
public float getPressure()
public float getPressure(int index)
public int getWheelRotation()
The events will be send usually in steps of one, ie. -1 and 1. Higher values may result due to fast scrolling.
The button number refers to the wheel number.
public String toString()
toString
in class InputEvent
public static String getEventTypeString(int type)
Copyright 2010 JogAmp Community.