net.jhid.impl.linux
Class LinuxNative

java.lang.Object
  extended bynet.jhid.impl.linux.LinuxNative

public class LinuxNative
extends java.lang.Object

Handles native calls.


Constructor Summary
LinuxNative()
           
 
Method Summary
static byte[] getEventCodes(int aFD, int aEventType)
           
static byte[] getEventTypes(int aFD)
           
static int getFD(java.lang.String aFileName)
          Returns the file descriptor for the specified file name, or -1 if not available.
static InputId getInputId(int aFD)
           
static java.lang.String getName(int aFD)
           
static boolean testBit(byte[] aBits, int aBit)
          Tests if the bit at the given index is 1 or 0 in the bit array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxNative

public LinuxNative()
Method Detail

getFD

public static int getFD(java.lang.String aFileName)
Returns the file descriptor for the specified file name, or -1 if not available.


getName

public static java.lang.String getName(int aFD)

getInputId

public static InputId getInputId(int aFD)

getEventTypes

public static byte[] getEventTypes(int aFD)
Returns:
A bit array, each bit corresponds to an EV_XXX constant.

getEventCodes

public static byte[] getEventCodes(int aFD,
                                   int aEventType)

testBit

public static boolean testBit(byte[] aBits,
                              int aBit)
Tests if the bit at the given index is 1 or 0 in the bit array.