Turn screen on in control()

Turning the screen on is semantically associated to control(): only
creating the EventController object should not turn the screen on.
master
Romain Vimont 8 years ago
parent 523097eadf
commit 063cfd1326

@ -28,9 +28,6 @@ public class EventController {
this.device = device;
this.connection = connection;
initPointer();
// on start, turn screen on
turnScreenOn();
}
private void initPointer() {
@ -61,6 +58,9 @@ public class EventController {
}
public void control() throws IOException {
// on start, turn screen on
turnScreenOn();
while (true) {
handleEvent();
}

Loading…
Cancel
Save