com.jniwrapper.win32.hook
Class LowLevelKeyboardEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jniwrapper.win32.hook.HookEventObject
          extended by com.jniwrapper.win32.hook.LowLevelKeyboardEvent
All Implemented Interfaces:
java.io.Serializable

public class LowLevelKeyboardEvent
extends HookEventObject

Defines low level keyboard event object.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 void consume()
          Causes the consuming of this event, so another applications will not receive it.
 long getMessageID()
          Returns the identifier of the keyboard message.
 long getScanCode()
          Returns a hardware scan code for the key.
 long getTime()
          Returns the time stamp for this message.
 long getVirtualKeyCode()
          Returns a virtual-key code.
 boolean isAltPressed()
          Specifies the context code.
 boolean isExtendedKey()
          Specifies whether the key is an extended key, such as a function key or a key on the numeric keypad.
 boolean isInjected()
          Specifies whether the event was injected.
 boolean isPressed()
          Specifies the transition state.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getMessageID

public long getMessageID()
Returns the identifier of the keyboard message.

Returns:
keyboard event identifier

getVirtualKeyCode

public long getVirtualKeyCode()
Returns a virtual-key code. The code is in the range 1 to 254.

Returns:
virtual key code

getScanCode

public long getScanCode()
Returns a hardware scan code for the key.

Returns:
a hardware scan code.

isExtendedKey

public boolean isExtendedKey()
Specifies whether the key is an extended key, such as a function key or a key on the numeric keypad.

Returns:
true, if the key is an extended key; otherwise, it is false

isInjected

public boolean isInjected()
Specifies whether the event was injected.

Returns:
The value is true if the event was injected; otherwise, it is false

isAltPressed

public boolean isAltPressed()
Specifies the context code.

Returns:
The value is true if the ALT key is pressed; otherwise, it is false

isPressed

public boolean isPressed()
Specifies the transition state.

Returns:
The value is true if the key is pressed and false if it is being released.

getTime

public long getTime()
Returns the time stamp for this message.

Returns:
time stamp

consume

public void consume()
Causes the consuming of this event, so another applications will not receive it.