Package org.newdawn.slick.command

Examples of org.newdawn.slick.command.InputProvider


 
  /**
   * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
   */
  public void init(GameContainer container) throws SlickException {
    provider = new InputProvider(container.getInput());
    provider.addListener(this);
   
    provider.bindCommand(new KeyControl(Input.KEY_LEFT), run);
    provider.bindCommand(new KeyControl(Input.KEY_A), run);
    provider.bindCommand(new ControllerDirectionControl(0, ControllerDirectionControl.LEFT), run);
View Full Code Here

TOP

Related Classes of org.newdawn.slick.command.InputProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.