Java 类org.newdawn.slick.InputListener 实例源码

项目:fuzzy-octo-shame    文件:FuzzyOctoShame.java   
/**
 * @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();
}
项目:fuzzy-octo-shame    文件:BasicInputListenerModule.java   
@Override
protected void configure() {
    bind(InputListener.class).to(BasicInputListener.class).in(Singleton.class);
}
项目:fuzzy-octo-shame    文件:LoggableInputListenerModule.java   
@Override
protected void configure() {
    bind(InputListener.class).to(LoggableInputListener.class).in(Singleton.class);
}
项目:fuzzy-octo-shame    文件:MotherBrain.java   
@Override
public void setInputListener(InputListener inputListener) {
    this.inputListener = inputListener;
}
项目:trashjam2017    文件:ParticleGame.java   
/**
 * 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;
}
项目:Progetto-C    文件:ParticleGame.java   
/**
 * 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;
}
项目:fuzzy-octo-shame    文件:InputListenable.java   
/**
 *
 * @param inputListener inputListener
 */
void setInputListener(InputListener inputListener);
项目:Disparity-RHE    文件:ParticleGame.java   
/**
 * 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;
}
项目:slick2d-maven    文件:ParticleGame.java   
/**
 * 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;
}