Class KeyListenerUtil

java.lang.Object
org.jpass.utils.KeyListenerUtil
All Implemented Interfaces:
com.github.kwhat.jnativehook.keyboard.NativeKeyListener, EventListener

public class KeyListenerUtil extends Object implements com.github.kwhat.jnativehook.keyboard.NativeKeyListener
Class to listen for key presses using library Jnativehook
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    nativeKeyPressed(com.github.kwhat.jnativehook.keyboard.NativeKeyEvent e)
    Check for key presses - <Ctrl> + B, <Ctrl> + P, <Ctrl> + D, Up, Down
    void
    nativeKeyReleased(com.github.kwhat.jnativehook.keyboard.NativeKeyEvent e)
    Check for key releases - <Ctrl>, B, P, D

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.github.kwhat.jnativehook.keyboard.NativeKeyListener

    nativeKeyTyped
  • Constructor Details

    • KeyListenerUtil

      public KeyListenerUtil()
      Constructor
  • Method Details

    • nativeKeyPressed

      public void nativeKeyPressed(com.github.kwhat.jnativehook.keyboard.NativeKeyEvent e)
      Check for key presses - <Ctrl> + B, <Ctrl> + P, <Ctrl> + D, Up, Down
      Specified by:
      nativeKeyPressed in interface com.github.kwhat.jnativehook.keyboard.NativeKeyListener
      Parameters:
      e - NativeKeyEvent
    • nativeKeyReleased

      public void nativeKeyReleased(com.github.kwhat.jnativehook.keyboard.NativeKeyEvent e)
      Check for key releases - <Ctrl>, B, P, D
      Specified by:
      nativeKeyReleased in interface com.github.kwhat.jnativehook.keyboard.NativeKeyListener
      Parameters:
      e - NativeKeyEvent