aboutsummaryrefslogtreecommitdiff
path: root/PunchingBag/src/uk/ac/open/punchingbag/examples/SimpleKeyboard.java
diff options
context:
space:
mode:
Diffstat (limited to 'PunchingBag/src/uk/ac/open/punchingbag/examples/SimpleKeyboard.java')
-rw-r--r--PunchingBag/src/uk/ac/open/punchingbag/examples/SimpleKeyboard.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/PunchingBag/src/uk/ac/open/punchingbag/examples/SimpleKeyboard.java b/PunchingBag/src/uk/ac/open/punchingbag/examples/SimpleKeyboard.java
index 9c05254..1e791ee 100644
--- a/PunchingBag/src/uk/ac/open/punchingbag/examples/SimpleKeyboard.java
+++ b/PunchingBag/src/uk/ac/open/punchingbag/examples/SimpleKeyboard.java
@@ -277,7 +277,7 @@ public class SimpleKeyboard implements ButtonListener, Runnable {
public void run() {
while (true) {
System.out.println("Checking last action time");
- if ((System.currentTimeMillis() - lastActionTime) > 60000) {
+ if ((System.currentTimeMillis() - lastActionTime) > 20000) {
System.out.println("Activating Noise");
bag.noise(new Rectangle(0, 0, 9, 20));
@@ -287,7 +287,7 @@ public class SimpleKeyboard implements ButtonListener, Runnable {
System.out.println("Waiting more");
}
try {
- Thread.sleep(20000);
+ Thread.sleep(10000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();