當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。