当前位置: 首页>>代码示例>>Java>>正文


Java InputMultiplexer.removeProcessor方法代码示例

本文整理汇总了Java中com.badlogic.gdx.InputMultiplexer.removeProcessor方法的典型用法代码示例。如果您正苦于以下问题:Java InputMultiplexer.removeProcessor方法的具体用法?Java InputMultiplexer.removeProcessor怎么用?Java InputMultiplexer.removeProcessor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.badlogic.gdx.InputMultiplexer的用法示例。


在下文中一共展示了InputMultiplexer.removeProcessor方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: changeTest

import com.badlogic.gdx.InputMultiplexer; //导入方法依赖的package包/类
private void changeTest (int engineIndex, int testIndex) {
	// Remove the old test and its window
	if (currentTest != null) {
		if (currentTest.getDetailWindow() != null) currentTest.getDetailWindow().remove();
		currentTest.dispose();
	}

	// Add the new test and its window
	currentTest = tests[engineIndex][testIndex];
	currentTest.create();
	testHelpLabel.setText(currentTest.getHelpMessage());
	InputMultiplexer im = (InputMultiplexer)Gdx.input.getInputProcessor();
	if (im.size() > 1) im.removeProcessor(1);
	if (currentTest.getInputProcessor() != null) im.addProcessor(currentTest.getInputProcessor());
	if (currentTest.getDetailWindow() != null) stage.addActor(currentTest.getDetailWindow());
}
 
开发者ID:libgdx,项目名称:gdx-ai,代码行数:17,代码来源:SteeringBehaviorsTest.java

示例2: changeTest

import com.badlogic.gdx.InputMultiplexer; //导入方法依赖的package包/类
void changeTest (int index) {
	// Remove the old behavior and its window
	testsTable.clear();
	if (currentTest != null) {
		if (currentTest.getDetailWindow() != null) currentTest.getDetailWindow().remove();
		currentTest.dispose();
	}

	// Add the new behavior and its window
	currentTest = tests[index];
	currentTest.create();
	InputMultiplexer im = (InputMultiplexer)Gdx.input.getInputProcessor();
	if (im.size() > 1) im.removeProcessor(1);
	if (currentTest.getInputProcessor() != null) im.addProcessor(currentTest.getInputProcessor());
	if (currentTest.getDetailWindow() != null) stage.addActor(currentTest.getDetailWindow());
}
 
开发者ID:libgdx,项目名称:gdx-ai,代码行数:17,代码来源:PathFinderTests.java

示例3: deregisterInput

import com.badlogic.gdx.InputMultiplexer; //导入方法依赖的package包/类
public void deregisterInput(InputMultiplexer inputMultiplexer) {
	for(Controller child : children) {
		child.deregisterInput(inputMultiplexer);
	}
	
	inputMultiplexer.removeProcessor(getStage());
}
 
开发者ID:mcgeer,项目名称:Climatar,代码行数:8,代码来源:Controller.java

示例4: removeInputProcessors

import com.badlogic.gdx.InputMultiplexer; //导入方法依赖的package包/类
private void removeInputProcessors() {
	logger.info("disabling engine input processors");
	InputMultiplexer inputMultiplexer = Env.getGame().getMultiplexer();
	
	inputMultiplexer.removeProcessor(this);
	
	for (EntitySystem system : engine.getSystems()) {
		if (system instanceof InputProcessor) {
			inputMultiplexer.removeProcessor((InputProcessor)system);
		}
	}
}
 
开发者ID:saltares,项目名称:libgdxjam,代码行数:13,代码来源:GameScreen.java

示例5: dispose

import com.badlogic.gdx.InputMultiplexer; //导入方法依赖的package包/类
@Override
protected void dispose() {
	InputMultiplexer inputMultiplexer = (InputMultiplexer) Gdx.input.getInputProcessor();
	inputMultiplexer.removeProcessor(stage);
}
 
开发者ID:Radomiej,项目名称:JavityEngine,代码行数:6,代码来源:Scene2dSystem.java

示例6: removeFromMultiplexer

import com.badlogic.gdx.InputMultiplexer; //导入方法依赖的package包/类
public void removeFromMultiplexer(InputMultiplexer multiplexer) {
    multiplexer.removeProcessor(stage);
}
 
开发者ID:neuroradiology,项目名称:TinyVoxel,代码行数:4,代码来源:GUI.java


注:本文中的com.badlogic.gdx.InputMultiplexer.removeProcessor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。