Thread aangemaakt voor het updaten van features en pollen van events. Misschien moet het hele Device een Thread worden?

This commit is contained in:
Bram Veenboer
2011-02-05 22:10:39 +00:00
parent 792c430ad0
commit 9048c76afe
4 changed files with 49 additions and 31 deletions

View File

@@ -50,7 +50,7 @@ public class Main extends Target {
}
public void start() throws Exception {
addDevice(new ExampleDevice());
//addDevice(new ExampleDevice());
addDevice(new RumblepadDevice());
Application application = new VoorbeeldApplication();
@@ -67,6 +67,7 @@ public class Main extends Target {
public void run() throws ActionException, EventException {
run = true;
while (run) {
//System.out.println("Print!");
if (actionQueue.isEmpty()) {
try {
Thread.sleep(SLEEP);