// Path: src/main/java/com/dstjacques/jhotkeys/JHotKeys.java
// public class JHotKeys
// {
//    public JHotKeyController control;
// 
//    public JHotKeys(String libPath)
//    {
//       String os = System.getProperty("os.name").toLowerCase();
// 
//       if(os.indexOf("win") > -1)
//       {
//          this.control = new WindowsHotKeyController(libPath);
//       }
//       else if(os.indexOf("nux") > -1 || os.indexOf("nix") > -1)
//       {
//          this.control = new UnixHotKeyController(libPath);
//       }
//       else
//       {
//          System.out.println("Operating system not supported");
//          this.control = null;
//       }
//    }
// 
//    public void registerHotKey(int id, int modifier, int key)
//    {
//       this.control.registerHotKey(id, modifier, key);
//    }
// 
//    public void unregisterHotKey(int id)
//    {
//       this.control.unregisterHotKey(id);
//    }
// 
//    public void addHotKeyListener(JHotKeyListener l)
//    {
//       this.control.addHotKeyListener(l);
//    }
// 
// }
// 
// Path: src/main/java/com/dstjacques/jhotkeys/JHotKeyListener.java
// public interface JHotKeyListener
// {
//    public void onHotKey(int id);
// }


import com.dstjacques.jhotkeys.JHotKeys;
import com.dstjacques.jhotkeys.JHotKeyListener;


public class GlobalHotKeyExample
{

   public static void main(String[] args)
   {
      // Initialize an object with global hotkey support
      // and tell it where the "lib" folder with native
      // libraries are
// Path: src/main/java/com/dstjacques/jhotkeys/JHotKeys.java
// public class JHotKeys
// {
//    public JHotKeyController control;
// 
//    public JHotKeys(String libPath)
//    {
//       String os = System.getProperty("os.name").toLowerCase();
// 
//       if(os.indexOf("win") > -1)
//       {
//          this.control = new WindowsHotKeyController(libPath);
//       }
//       else if(os.indexOf("nux") > -1 || os.indexOf("nix") > -1)
//       {
//          this.control = new UnixHotKeyController(libPath);
//       }
//       else
//       {
//          System.out.println("Operating system not supported");
//          this.control = null;
//       }
//    }
// 
//    public void registerHotKey(int id, int modifier, int key)
//    {
//       this.control.registerHotKey(id, modifier, key);
//    }
// 
//    public void unregisterHotKey(int id)
//    {
//       this.control.unregisterHotKey(id);
//    }
// 
//    public void addHotKeyListener(JHotKeyListener l)
//    {
//       this.control.addHotKeyListener(l);
//    }
// 
// }
// 
// Path: src/main/java/com/dstjacques/jhotkeys/JHotKeyListener.java
// public interface JHotKeyListener
// {
//    public void onHotKey(int id);
// }


// Path: examples/GlobalHotKeyExample.java
import com.dstjacques.jhotkeys.JHotKeys;
import com.dstjacques.jhotkeys.JHotKeyListener;



public class GlobalHotKeyExample
{

   public static void main(String[] args)
   {
      // Initialize an object with global hotkey support
      // and tell it where the "lib" folder with native
      // libraries are
      JHotKeys hotkeys = new JHotKeys("../lib");