Skip to content
Snippets Groups Projects
Demo.java 392 B
Newer Older
  • Learn to ignore specific revisions
  • NikolaBabic's avatar
    NikolaBabic committed
    package model;
    
    public class Demo implements Runnable {
        int id = 0;
        boolean stop = false;
    
        public Demo() {
    
        }
    
         public void run() {
             while (!stop) {
                 if (OSInterface.getInstance().wasPressed(id)) {
    
    NikolaBabic's avatar
    NikolaBabic committed
                    OSInterface.getInstance().sendKey(0x70, false);
    
    NikolaBabic's avatar
    NikolaBabic committed
                 }
             }
         }
    
         public void stop() {
            stop = true;
         }
    }