Updates to work with new BUI auto-attach/detach.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3550 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-05-12 22:23:55 +00:00
parent 677455e5d7
commit 3722bc3697
2 changed files with 6 additions and 9 deletions
+5 -6
View File
@@ -249,12 +249,6 @@ public class JmeApp
HardwareMouse mouse = new HardwareMouse("Mouse");
mouse.setMouseInput(InputSystem.getMouseInput());
_input.setMouse(mouse);
InputSystem.createInputSystem(_properties.getRenderer());
_dispatcher = new InputDispatcher(_timer, _input);
// we don't hide the cursor
InputSystem.getMouseInput().setCursorVisible(true);
}
/**
@@ -300,6 +294,11 @@ public class JmeApp
// set up a node for our interface
_iface = new Node("Interface");
_root.attachChild(_iface);
InputSystem.createInputSystem(_properties.getRenderer());
_dispatcher = new InputDispatcher(_timer, _input, _iface);
// we don't hide the cursor
InputSystem.getMouseInput().setCursorVisible(true);
}
/**
@@ -30,10 +30,8 @@ public class JabberView extends BWindow
_chat = new ChatView(_jctx, _ctx.getChatDirector());
add(_chat, BorderLayout.CENTER);
setBounds(0, 40, 640, 240);
layout();
_jctx.getInterface().attachChild(getNode());
_jctx.getInputDispatcher().addWindow(this);
setBounds(0, 40, 640, 240);
}
// documentation inherited from interface PlaceView