本文整理匯總了Java中com.jme3.app.SimpleApplication.getInputManager方法的典型用法代碼示例。如果您正苦於以下問題:Java SimpleApplication.getInputManager方法的具體用法?Java SimpleApplication.getInputManager怎麽用?Java SimpleApplication.getInputManager使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.jme3.app.SimpleApplication
的用法示例。
在下文中一共展示了SimpleApplication.getInputManager方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: EmitterModule
import com.jme3.app.SimpleApplication; //導入方法依賴的package包/類
public EmitterModule(final SimpleApplication app) {
super(app.getAssetManager().loadTexture("org/hexgridapi/assets/Textures/"
+ "Icons/Buttons/hexIconBW.png").getImage(),
"Emitter Module", null, false);
this.app = app;
//@todo need to be cleanned
// app.getAssetManager().registerLocator("/home/roah/Documents/jmonkey/3.1/tonegodProjects/EmitterBuilder/assets", FileLocator.class);
screen = new Screen(app, "tonegod/gui/style/atlasdef/style_map.gui.xml");
screen.setUseTextureAtlas(true, "tonegod/gui/style/atlasdef/atlas.png");
// screen.setUseCustomCursors(true);
builder = new EmitterBuilder(app, screen);
chaseCam = new ChaseCamera(app.getCamera(), builder.getRootNode(), app.getInputManager());
app.enqueue(new Callable<Void>() {
@Override
public Void call() throws Exception {
if(app.getGuiNode().getControl(Screen.class) == null)
app.getGuiNode().addControl(screen);
return null;
}
});
}
示例2: initialize
import com.jme3.app.SimpleApplication; //導入方法依賴的package包/類
@Override
public void initialize(AppStateManager stateManager, Application app)
{
super.initialize(stateManager, app);
initialTime = System.currentTimeMillis();
simpleApp = (SimpleApplication) app;
this.stateManager = simpleApp.getStateManager();
this.assetManager = simpleApp.getAssetManager();
this.camera = simpleApp.getCamera();
this.flyCam = simpleApp.getFlyByCamera();
this.inputManager = simpleApp.getInputManager();
this.rootNode = simpleApp.getRootNode();
this.guiNode = simpleApp.getGuiNode();
this.viewPort = simpleApp.getViewPort();
Music.setAssetManager(assetManager);
showTitle();
setCamPosition();
initCave();
initAtmosphere();
initFloorLighting();
initFadeFilter();
initKeyboardControls();
Music.playIntroTheme();
spiders = new LinkedList<>();
}
示例3: initialize
import com.jme3.app.SimpleApplication; //導入方法依賴的package包/類
@Override
public void initialize(AppStateManager stateManager, Application app)
{
super.initialize(stateManager, app);
simpleApp = (SimpleApplication) app;
this.inputManager = simpleApp.getInputManager();
initGuiElements();
initKeyboardControls();
}