diff src/alice/test/topology/movement/MakeFrame.java @ 93:6601f8854126 working

can KeyInputCodeSegment
author sugi
date Tue, 05 Jun 2012 16:33:28 +0900
parents 8e3c1217aad4
children
line wrap: on
line diff
--- a/src/alice/test/topology/movement/MakeFrame.java	Tue Jun 05 14:31:04 2012 +0900
+++ b/src/alice/test/topology/movement/MakeFrame.java	Tue Jun 05 16:33:28 2012 +0900
@@ -22,6 +22,7 @@
 	private Canvas3D canvas;
 	private SimpleUniverse universe;
 	private KeyInput key;
+	private KeyInputCodeSegment KIC;
 	
 	public MakeFrame(){
 		JFrame frame = new JFrame();
@@ -39,10 +40,12 @@
 		
 		universe = new SimpleUniverse(canvas);
 		universe.addBranchGraph(createLight());
-		
+		/*
 		key = new KeyInput();
 		canvas.addKeyListener(key);
-		
+		*/
+		KIC = new KeyInputCodeSegment();
+		canvas.addKeyListener(KIC);
 		frame.setVisible(true);
 		
 		ViewingPlatform camera = universe.getViewingPlatform();
@@ -78,8 +81,8 @@
 		return this.key;
 	}
 	
-	public SimpleUniverse getUniverse(){
-		return this.universe;
+	public KeyInputCodeSegment getKeySegment(){
+		return this.KIC;
 	}
 
 }