diff src/alice/test/topology/movement/KeyInputCodeSegment.java @ 105:993a9f194615 working

success share TEST
author sugi
date Tue, 03 Jul 2012 15:58:08 +0900
parents 21e68300e205
children
line wrap: on
line diff
--- a/src/alice/test/topology/movement/KeyInputCodeSegment.java	Tue Jul 03 15:55:27 2012 +0900
+++ b/src/alice/test/topology/movement/KeyInputCodeSegment.java	Tue Jul 03 15:58:08 2012 +0900
@@ -15,24 +15,24 @@
 	@Override
 	public void keyPressed(KeyEvent event) {
 		KeyCode = event.getKeyCode();
-		System.out.println("getKey" +KeyCode);
+		//System.out.println("getKey" +KeyCode);
 		switch(KeyCode)
 		{
 		case 37:
 			cs = new SendLocation(-0.1f,0.0f);
-			cs.position.setKey("parent", "fish3X");
+			cs.position.setKey("local", "fish");
 			break;
 		case 39:
 			cs = new SendLocation(0.1f,0.0f);
-			cs.position.setKey("parent", "fish3X");
+			cs.position.setKey("local", "fish");
 			break;
 		case 40:
 			cs = new SendLocation(0.0f,-0.1f);
-			cs.position.setKey("parent", "fish3X");
+			cs.position.setKey("local", "fish");
 			break;
 		case 38:
 			cs = new SendLocation(0.0f,0.1f);
-			cs.position.setKey("parent", "fish3X");
+			cs.position.setKey("local", "fish");
 			break;
 		}
 	}