本文整理汇总了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());
}
示例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());
}
示例3: deregisterInput
import com.badlogic.gdx.InputMultiplexer; //导入方法依赖的package包/类
public void deregisterInput(InputMultiplexer inputMultiplexer) {
for(Controller child : children) {
child.deregisterInput(inputMultiplexer);
}
inputMultiplexer.removeProcessor(getStage());
}
示例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);
}
}
}
示例5: dispose
import com.badlogic.gdx.InputMultiplexer; //导入方法依赖的package包/类
@Override
protected void dispose() {
InputMultiplexer inputMultiplexer = (InputMultiplexer) Gdx.input.getInputProcessor();
inputMultiplexer.removeProcessor(stage);
}
示例6: removeFromMultiplexer
import com.badlogic.gdx.InputMultiplexer; //导入方法依赖的package包/类
public void removeFromMultiplexer(InputMultiplexer multiplexer) {
multiplexer.removeProcessor(stage);
}