Class KeyboardUtils


  • public class KeyboardUtils
    extends Object
    Provide access to the local keyboard state. Note that this is meaningless on a headless system and some VNC setups.
    Author:
    twall
    • Field Detail

      • INSTANCE

        static final com.sun.jna.platform.KeyboardUtils.NativeKeyboardUtils INSTANCE
    • Constructor Detail

      • KeyboardUtils

        public KeyboardUtils()
    • Method Detail

      • isPressed

        public static boolean isPressed​(int keycode,
                                        int location)
      • isPressed

        public static boolean isPressed​(int keycode)