Skip to content
Snippets Groups Projects
Commit 924c674b authored by NikolaBabic's avatar NikolaBabic
Browse files

Fixed demo

parent c6727ad8
No related branches found
No related tags found
2 merge requests!45Prototype to Master for Milestone 5,!44Demo
......@@ -16,13 +16,15 @@ public class Main extends Application {
public static void main(String[] args) {
Demo demo = new Demo();
Thread thread = new Thread(OSInterface.getInstance());
Thread demoThread = new Thread(new Demo());
Thread demoThread = new Thread(demo);
thread.start();
demoThread.start();
launch(args);
OSInterface.getInstance().stop();
demo.stop();
}
}
......@@ -11,7 +11,7 @@ public class Demo implements Runnable {
public void run() {
while (!stop) {
if (OSInterface.getInstance().wasPressed(id)) {
OSInterface.getInstance().sendKey(0x70, false);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment