Class LinuxInputEventCodes

java.lang.Object
org.harctoolbox.harchardware.misc.LinuxInputEventCodes

public class LinuxInputEventCodes extends Object
This class contains some static stuff allowing access to the Linux keycodes in input-event-codes.h. Presently, it runs on Linux only. We leave it as an exercise to the reader to make it portable.
  • Method Details

    • main

      public static void main(String[] args)
    • getKeyNames

      public static Set<String> getKeyNames()
    • hasKeyName

      public static boolean hasKeyName(String key)
    • getKeyCode

      public static Integer getKeyCode(String key)
    • getKeyName

      public static String getKeyName(int code)