Serialized Form
-
Package com.github.kwhat.jnativehook
-
Class com.github.kwhat.jnativehook.AbstractSwingInputAdapter extends Component implements Serializable
-
Class com.github.kwhat.jnativehook.NativeHookException extends Exception implements Serializable
- serialVersionUID:
- 8952825837670265527L
-
Serialized Fields
-
code
int code
The error code associated with this exception.
-
-
Class com.github.kwhat.jnativehook.NativeInputEvent extends EventObject implements Serializable
- serialVersionUID:
- 2306729722565226621L
-
Serialized Fields
-
id
int id
The type of event. -
modifiers
int modifiers
The modifier keys down during event. -
reserved
short reserved
Mask for undocumented behavior. More information available at: wiki/Usage#consuming-events-unsupported- Since:
- 2.0
-
when
long when
The platform dependent time the event occured at.
-
-
-
Package com.github.kwhat.jnativehook.example
-
Class com.github.kwhat.jnativehook.example.NativeHookDemo extends JFrame implements Serializable
- serialVersionUID:
- 1541183202160543102L
-
Serialized Fields
-
menuItemButtonEvents
JCheckBoxMenuItem menuItemButtonEvents
-
menuItemClear
JMenuItem menuItemClear
-
menuItemEnable
JCheckBoxMenuItem menuItemEnable
-
menuItemKeyboardEvents
JCheckBoxMenuItem menuItemKeyboardEvents
-
menuItemMotionEvents
JCheckBoxMenuItem menuItemMotionEvents
-
menuItemQuit
JMenuItem menuItemQuit
-
menuItemWheelEvents
JCheckBoxMenuItem menuItemWheelEvents
-
menuSubListeners
JMenu menuSubListeners
Menu Items -
txtEventInfo
JTextArea txtEventInfo
The text area to display event info.
-
-
-
Package com.github.kwhat.jnativehook.keyboard
-
Class com.github.kwhat.jnativehook.keyboard.NativeKeyEvent extends NativeInputEvent implements Serializable
- serialVersionUID:
- 8608981443834617646L
-
Serialized Fields
-
keyChar
char keyChar
The Unicode character. -
keyCode
int keyCode
The virtual key code. -
keyLocation
int keyLocation
The virtual key location. -
rawCode
int rawCode
The raw native key code.
-
-
Class com.github.kwhat.jnativehook.keyboard.SwingKeyAdapter extends AbstractSwingInputAdapter implements Serializable
-
-
Package com.github.kwhat.jnativehook.mouse
-
Class com.github.kwhat.jnativehook.mouse.NativeMouseEvent extends NativeInputEvent implements Serializable
- serialVersionUID:
- -1093048990695350863L
-
Serialized Fields
-
button
int button
Indicates which, if any, of the mouse buttons has changed state.The only legal values are the following constants:
NOBUTTON
,BUTTON1
,BUTTON2
,BUTTON3
,BUTTON4
orBUTTON5
-
clickCount
int clickCount
The native mouse event's click count.- See Also:
NativeMouseEvent.getClickCount()
-
x
int x
The native mouse event's x pointer position.- See Also:
NativeMouseEvent.getX()
-
y
int y
The native mouse event's y pointer position.- See Also:
NativeMouseEvent.getY()
-
-
Class com.github.kwhat.jnativehook.mouse.NativeMouseWheelEvent extends NativeMouseEvent implements Serializable
- serialVersionUID:
- 2112217673594181259L
-
Serialized Fields
-
scrollAmount
int scrollAmount
Only valid for scrollType WHEEL_UNIT_SCROLL. Indicates number of units that should be scrolled per click of mouse wheel rotation, based on platform settings. -
scrollType
int scrollType
Indicates what sort of scrolling should take place in response to this event, based on platform settings. Legal values are:- WHEEL_UNIT_SCROLL
- WHEEL_BLOCK_SCROLL
- See Also:
NativeMouseWheelEvent.getScrollType()
-
wheelDirection
int wheelDirection
Indicates how far the mouse wheel was rotated. -
wheelRotation
int wheelRotation
Indicates how far the mouse wheel was rotated.- See Also:
NativeMouseWheelEvent.getWheelRotation()
-
-
Class com.github.kwhat.jnativehook.mouse.SwingMouseAdapter extends AbstractSwingInputAdapter implements Serializable
-
Class com.github.kwhat.jnativehook.mouse.SwingMouseWheelAdapter extends SwingMouseAdapter implements Serializable
-