Class EventCodes
public final class EventCodes
Event type codes and masks used in JtvEvent.what.
Additional constants are jtvision extensions
(mouse wheel directions and richer click flags).
org.viktor44.jtvision.core.EventCodes
Summary
Constructors
| Visibility | Signature |
|---|---|
| private | EventCodes() |
Fields
| Modifiers | Field name | Type |
|---|---|---|
| public static final | evMouseDown | int |
| public static final | evMouseUp | int |
| public static final | evMouseMove | int |
| public static final | evMouseAuto | int |
| public static final | evMouseWheel | int |
| public static final | evKeyDown | int |
| public static final | evPaste | int |
| public static final | evCommand | int |
| public static final | evBroadcast | int |
| public static final | evNothing | int |
| public static final | evMouse | int |
| public static final | evKeyboard | int |
| public static final | evMessage | int |
| public static final | mbLeftButton | int |
| public static final | mbRightButton | int |
| public static final | mbMiddleButton | int |
| public static final | mwUp | int |
| public static final | mwDown | int |
| public static final | mwLeft | int |
| public static final | mwRight | int |
| public static final | meMouseMoved | int |
| public static final | meDoubleClick | int |
| public static final | meTripleClick | int |
| public static final | positionalEvents | int |
| public static final | focusedEvents | int |
Constructors
EventCodes()
No method description provided
Fields
int evMouseDown
Mouse button pressed.
int evMouseUp
Mouse button released.
int evMouseMove
Mouse changed location.
int evMouseAuto
Periodic event while a mouse button is held.
int evMouseWheel
jtvision extension for mouse wheel input.
int evKeyDown
Key pressed.
int evPaste
Bracketed paste event: the terminal delivered clipboard content
wrapped in ESC[200~…ESC[201~. The pasted text
is carried in the event's MessageEvent.getInfoPtr() as a
String.
int evCommand
Command event.
int evBroadcast
Broadcast event.
int evNothing
Event has already been handled; no further action is required.
int evMouse
Mask for mouse-family events.
The base mouse mask is 0x000F. jtvision extends it
with evMouseWheel, resulting in 0x002F.
int evKeyboard
Keyboard event mask (includes evKeyDown and evPaste).
int evMessage
Message-family event mask (0xFF00): command, broadcast, or user-defined message.
int mbLeftButton
Left mouse button state bit.
int mbRightButton
Right mouse button state bit.
int mbMiddleButton
Middle mouse button state bit.
int mwUp
Wheel direction: up.
int mwDown
Wheel direction: down.
int mwLeft
Wheel direction: left.
int mwRight
Wheel direction: right.
int meMouseMoved
Pointer moved during the current interaction sequence.
int meDoubleClick
Mouse event is a double click.
int meTripleClick
Mouse event is a triple click.
int positionalEvents
Events routed by pointer position.
This is the classic positional mouse set (evMouseDown, evMouseUp, evMouseMove, evMouseAuto) and intentionally excludes evMouseWheel.
int focusedEvents
Events routed through focused-event processing.
The default focused routing contains keyboard bits; jtvision also includes evCommand for command-chain handling.