usb.linux
Class HID.Event

java.lang.Object
  |
  +--usb.linux.HID.Event
Enclosing class:
HID

public static class HID.Event
extends java.lang.Object

Encapsulates HID i/o event reports.


Method Summary
 short getCode()
          Returns a code associated with this event type, perhaps identifying a button, key, controller axis, or specific LED
 long getTime()
          Returns the event's timestamp
 short getType()
           
 java.lang.String getTypeName()
          Returns a symbolic name identifying the event type
 int getValue()
          Returns a value associated with this event type, perhaps LED settings or a relative or absolute value.
 java.lang.String toString()
          Returns a simple string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getTime

public long getTime()
Returns the event's timestamp

getType

public short getType()

getTypeName

public java.lang.String getTypeName()
Returns a symbolic name identifying the event type

getCode

public short getCode()
Returns a code associated with this event type, perhaps identifying a button, key, controller axis, or specific LED

getValue

public int getValue()
Returns a value associated with this event type, perhaps LED settings or a relative or absolute value.

toString

public java.lang.String toString()
Returns a simple string representation
Overrides:
toString in class java.lang.Object


Associated source code is licenced under the LGPL.
See http://jusb.sourceforge.net
This documentation was derived from that source code on 24-Jul-2002.