本文整理匯總了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);
}