diff ExperimentController.java @ 10:3dd7636ca811

Add facility for printing out debugging info. Ignore-this: 8073cadd49dcc4a7e7cc81dd25f90e89
author Marcus Pearce <m.pearce@gold.ac.uk>
date Fri, 04 Nov 2011 17:44:38 +0000
parents 235484b93707
children 284c23df4652
line wrap: on
line diff
--- a/ExperimentController.java	Fri Nov 04 16:53:17 2011 +0000
+++ b/ExperimentController.java	Fri Nov 04 17:44:38 2011 +0000
@@ -2,7 +2,7 @@
  * File:       ExperimentController.java
  * Author:     Marcus Pearce <m.pearce@gold.ac.uk>
  * Created:    <2007-12-14 12:06:10 marcusp>
- * Time-stamp: <2011-07-19 15:26:30 marcusp>
+ * Time-stamp: <2011-11-04 17:31:28 marcusp>
  *=============================================================================
  */
 
@@ -182,7 +182,8 @@
                 for (int i = 0; i < rButtons.length; i++) {
                     //System.out.println("Char = " + Character.forDigit(i+1, 10));
                     if (e.getKeyChar() == Character.forDigit(i+1, 10)) {
-                        //System.out.println("Got rating: " + (i + 1));
+                        if (exp.getDebug())
+                            System.out.println("Got rating: " + (i + 1));
                         block.addResponse(i+1, time);
                         gui.setAcceptingResponses(false); 
                     }