本文整理汇总了Java中org.newdawn.slick.InputListener类的典型用法代码示例。如果您正苦于以下问题:Java InputListener类的具体用法?Java InputListener怎么用?Java InputListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InputListener类属于org.newdawn.slick包,在下文中一共展示了InputListener类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import org.newdawn.slick.InputListener; //导入依赖的package包/类
/**
* @param args Command-line arguments
*/
public static void main(String[] args) {
final Injector injector = Guice.createInjector(
new MotherBrainModule(),
new LoggableInputListenerModule(),
new StateManagerModule()
);
final MotherBrain motherBrain = injector.getInstance(MotherBrain.class);
final InputListener basicInputListener = injector.getInstance(LoggableInputListener.class);
motherBrain.setInputListener(basicInputListener);
motherBrain.start();
}
示例2: configure
import org.newdawn.slick.InputListener; //导入依赖的package包/类
@Override
protected void configure() {
bind(InputListener.class).to(BasicInputListener.class).in(Singleton.class);
}
示例3: configure
import org.newdawn.slick.InputListener; //导入依赖的package包/类
@Override
protected void configure() {
bind(InputListener.class).to(LoggableInputListener.class).in(Singleton.class);
}
示例4: setInputListener
import org.newdawn.slick.InputListener; //导入依赖的package包/类
@Override
public void setInputListener(InputListener inputListener) {
this.inputListener = inputListener;
}
示例5: setListener
import org.newdawn.slick.InputListener; //导入依赖的package包/类
/**
* Set the input listener to be added on init
*
* @param listener The listener to be added on init
*/
public void setListener(InputListener listener) {
this.listener = listener;
}
示例6: setInputListener
import org.newdawn.slick.InputListener; //导入依赖的package包/类
/**
*
* @param inputListener inputListener
*/
void setInputListener(InputListener inputListener);