net.jhid.impl.linux
Class LinuxDeviceInfo

java.lang.Object
  extended bynet.jhid.impl.linux.LinuxDeviceInfo
All Implemented Interfaces:
IDeviceInfo

public class LinuxDeviceInfo
extends java.lang.Object
implements IDeviceInfo

Permits to retrieve


Constructor Summary
LinuxDeviceInfo(java.lang.String aFileName, int aFD)
           
 
Method Summary
 java.lang.String getDeviceName()
          Returns the name of the device as reported by the OS.
 int getDeviceVendorId()
          Returns vendor id of the device as reported by the OS.
 int getDeviceVersion()
          Returns version number of the device as reported by the OS.
 int getFD()
           
 java.lang.String getFileName()
           
 InputId getInputId()
           
 byte[] getSupportedEventCodes(int aEventType)
           
 byte[] getSupportedEventTypes()
           
 boolean hasEventCode(int aEventType, int aEventCode)
          Determines if the device can report events of the specified type and code
 boolean hasEventType(int aEventType)
          Determines if the device can report events of the specified type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxDeviceInfo

public LinuxDeviceInfo(java.lang.String aFileName,
                       int aFD)
Method Detail

getFD

public int getFD()

getFileName

public java.lang.String getFileName()

getInputId

public InputId getInputId()

getSupportedEventTypes

public byte[] getSupportedEventTypes()

getSupportedEventCodes

public byte[] getSupportedEventCodes(int aEventType)

hasEventType

public boolean hasEventType(int aEventType)
Determines if the device can report events of the specified type

Parameters:
aEventType - One of the EV_* constants in LinuxConstants

hasEventCode

public boolean hasEventCode(int aEventType,
                            int aEventCode)
Determines if the device can report events of the specified type and code

Parameters:
aEventType - One of the EV_* constants in LinuxConstants

getDeviceName

public java.lang.String getDeviceName()
Description copied from interface: IDeviceInfo
Returns the name of the device as reported by the OS.

Specified by:
getDeviceName in interface IDeviceInfo

getDeviceVendorId

public int getDeviceVendorId()
Description copied from interface: IDeviceInfo
Returns vendor id of the device as reported by the OS.

Specified by:
getDeviceVendorId in interface IDeviceInfo

getDeviceVersion

public int getDeviceVersion()
Description copied from interface: IDeviceInfo
Returns version number of the device as reported by the OS.

Specified by:
getDeviceVersion in interface IDeviceInfo