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:
@@ -249,12 +249,6 @@ public class JmeApp
|
|||||||
HardwareMouse mouse = new HardwareMouse("Mouse");
|
HardwareMouse mouse = new HardwareMouse("Mouse");
|
||||||
mouse.setMouseInput(InputSystem.getMouseInput());
|
mouse.setMouseInput(InputSystem.getMouseInput());
|
||||||
_input.setMouse(mouse);
|
_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
|
// set up a node for our interface
|
||||||
_iface = new Node("Interface");
|
_iface = new Node("Interface");
|
||||||
_root.attachChild(_iface);
|
_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());
|
_chat = new ChatView(_jctx, _ctx.getChatDirector());
|
||||||
add(_chat, BorderLayout.CENTER);
|
add(_chat, BorderLayout.CENTER);
|
||||||
|
|
||||||
setBounds(0, 40, 640, 240);
|
|
||||||
layout();
|
|
||||||
_jctx.getInterface().attachChild(getNode());
|
|
||||||
_jctx.getInputDispatcher().addWindow(this);
|
_jctx.getInputDispatcher().addWindow(this);
|
||||||
|
setBounds(0, 40, 640, 240);
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited from interface PlaceView
|
// documentation inherited from interface PlaceView
|
||||||
|
|||||||
Reference in New Issue
Block a user