|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.natives.AbstractHook
org.safs.natives.LLMouseHook
public class LLMouseHook
Hook class for intercepting low-level mouse events.
Usage:
1) define a class that implements interface LLMouseHookListener
2) to intercept mouse events in the class, implement: public void onLLMouseHook(int nCode, NativeLong wParam, MSLLHOOKSTRUCT info)
3) use MouseHook in the class
org.safs.natives.test.hookTest| Field Summary | |
|---|---|
static int |
WH_MOUSE_LL
the type of hook for a hook procedure that monitors low-level mouse events |
| Fields inherited from class org.safs.natives.AbstractHook |
|---|
hhk, hookId, hookname, hookProc, isHooked, listeners, USER32INST, WM_CHAR, WM_KEYDOWN, WM_KEYUP, WM_KILLFOCUS, WM_LBUTTONDBLCLK, WM_LBUTTONDOWN, WM_LBUTTONUP, WM_MOUSEHOVER, WM_MOUSEMOVE, WM_RBUTTONDOWN, WM_RBUTTONUP, WM_SETFOCUS, WM_SYSKEYDOWN, WM_SYSKEYUP, WM_UNICHAR |
| Constructor Summary | |
|---|---|
LLMouseHook()
|
|
| Method Summary | |
|---|---|
boolean |
addListener(CallbackHookListener listener)
add a listener for current Hook, it should be overridden in its derived classes for setting a specific listener. |
| Methods inherited from class org.safs.natives.AbstractHook |
|---|
getHook, isHooked, removeListener, run, setHook, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int WH_MOUSE_LL
| Constructor Detail |
|---|
public LLMouseHook()
| Method Detail |
|---|
public boolean addListener(CallbackHookListener listener)
AbstractHook
addListener in class AbstractHooklistener - -- a CallbackHookListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||