Rumblepad geimplementeerd, actions toegevoegd en begin gemaakt met iTunes implementatie. Die geeft rare Jacob foutmeldingen over de versie.

This commit is contained in:
Bram Veenboer
2011-02-08 21:01:37 +00:00
parent e9c0216ad9
commit 0fb1a1fb71
6 changed files with 191 additions and 3 deletions

View File

@@ -0,0 +1,31 @@
package pm.device.textinput;
import java.util.Scanner;
import pm.device.Device;
public class TextinputDevice extends Device {
static final int SLEEP = 50;
Scanner textinputScanner;
boolean run;
public TextinputDevice() {
textinputScanner = new Scanner(System.in);
run = true;
}
public void start() {
while(run) {
String textinput = textinputScanner.next();
if(textinput != null) {
System.out.println(textinput);
}
try {
Thread.sleep(SLEEP);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}