本文整理匯總了Java中com.jme3.system.AppSettings.setUseInput方法的典型用法代碼示例。如果您正苦於以下問題:Java AppSettings.setUseInput方法的具體用法?Java AppSettings.setUseInput怎麽用?Java AppSettings.setUseInput使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.jme3.system.AppSettings
的用法示例。
在下文中一共展示了AppSettings.setUseInput方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: AttitudePanel
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public AttitudePanel()
{
super();
setShowSettings(false);
setDisplayFps(false);
setDisplayStatView(false);
setPauseOnLostFocus(false);
AppSettings settings = new AppSettings(true);
settings.setUseInput(false);
setSettings(settings);
createCanvas();
ctx = (JmeCanvasContext) getContext();
ctx.setSystemListener(this);
ctx.getCanvas().setBackground(Color.BLACK);
ctx.getCanvas().setFocusable(false);
ctx.getCanvas().setSize(new Dimension(320, 240));
ctx.getCanvas().setFocusable(false);
}
示例2: makeJmeApplication
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
protected SupernoveaApplication makeJmeApplication(int framerate) {
AppSettings settings = new AppSettings(true);
// important to use those settings
// settings.putBoolean("GraphicsDebug", true);
settings.setFullscreen(false);
settings.setUseInput(false);
settings.setFrameRate(Math.max(1, Math.min(60, framerate)));
settings.setCustomRenderer(com.jme3x.jfx.injfx.JmeContextOffscreenSurface.class);
SupernoveaApplication app = new SupernoveaApplication();
app.setSettings(settings);
app.setShowSettings(false);
return app;
}
示例3: start
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public Jme3App start(String appName, String appType){
if (!apps.containsKey(appType)){
// create app
Jme3App jme3 = (Jme3App)Instantiator.getNewInstance(String.format("org.myrobotlab.jme3.%s", appType));
if (jme3 == null){
error("could not instantiate %s", appType);
return jme3;
}
SimpleApplication app = jme3.getApp();
// start it
AppSettings settings = new AppSettings(true);
settings.setResolution(640,480);
//settings.setEmulateMouse(false);
// settings.setUseJoysticks(false);
settings.setUseInput(true);
app.setSettings(settings);
app.setShowSettings(false);
app.start();
apps.put(appName, jme3);
currentApp = jme3;
return currentApp;
}
warn("already started app %s", appType);
return null;
}
示例4: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
InMoov3DApp app = new InMoov3DApp();
AppSettings settings = new AppSettings(true);
settings.setResolution(1024, 960);
// settings.setEmulateMouse(false);
// settings.setUseJoysticks(false);
settings.setUseInput(false);
app.setSettings(settings);
app.setShowSettings(false);
app.setPauseOnLostFocus(false);
app.start();
}