Java 类com.badlogic.gdx.controllers.ControllerAdapter 实例源码

项目:neblina-libgdx3d    文件:GameOver.java   
public GameOver (Invaders invaders) {
    super(invaders);
    spriteBatch = new SpriteBatch();
    background = new Texture(Gdx.files.internal("data/planet.jpg"));
    background.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    logo = new Texture(Gdx.files.internal("data/title.png"));
    logo.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    font = new BitmapFont(Gdx.files.internal("data/font16.fnt"), Gdx.files.internal("data/font16.png"), false);

    if (invaders.getController() != null) {
        invaders.getController().addListener(new ControllerAdapter() {
            @Override
            public boolean buttonUp(Controller controller,
                    int buttonIndex) {
                controller.removeListener(this);
                isDone = true;
                return false;
            }
        });
    }
}
项目:neblina-libgdx3d    文件:MainMenu.java   
public MainMenu (Invaders invaders) {
    super(invaders);

    spriteBatch = new SpriteBatch();
    background = new Texture(Gdx.files.internal("data/planet.jpg"));
    background.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    logo = new Texture(Gdx.files.internal("data/title.png"));
    logo.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    font = new BitmapFont(Gdx.files.internal("data/font16.fnt"), Gdx.files.internal("data/font16.png"), false);

    if (invaders.getController() != null) {
        invaders.getController().addListener(new ControllerAdapter() {
            @Override
            public boolean buttonUp(Controller controller, int buttonIndex) {
                controller.removeListener(this);
                isDone = true;
                return false;
            }
        });
    }
}
项目:android-screen-recorder    文件:GameOver.java   
public GameOver (Invaders invaders) {
    super(invaders);
    spriteBatch = new SpriteBatch();
    background = new Texture(Gdx.files.internal("data/planet.jpg"));
    background.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    logo = new Texture(Gdx.files.internal("data/title.png"));
    logo.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    font = new BitmapFont(Gdx.files.internal("data/font16.fnt"), Gdx.files.internal("data/font16.png"), false);

    if (invaders.getController() != null) {
        invaders.getController().addListener(new ControllerAdapter() {
            @Override
            public boolean buttonUp(Controller controller,
                    int buttonIndex) {
                controller.removeListener(this);
                isDone = true;
                return false;
            }
        });
    }
}
项目:android-screen-recorder    文件:MainMenu.java   
public MainMenu (Invaders invaders) {
    super(invaders);

    spriteBatch = new SpriteBatch();
    background = new Texture(Gdx.files.internal("data/planet.jpg"));
    background.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    logo = new Texture(Gdx.files.internal("data/title.png"));
    logo.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    font = new BitmapFont(Gdx.files.internal("data/font16.fnt"), Gdx.files.internal("data/font16.png"), false);

    if (invaders.getController() != null) {
        invaders.getController().addListener(new ControllerAdapter() {
            @Override
            public boolean buttonUp(Controller controller, int buttonIndex) {
                controller.removeListener(this);
                isDone = true;
                return false;
            }
        });
    }
}
项目:teavm-libgdx    文件:GameOver.java   
public GameOver (Invaders invaders) {
    super(invaders);
    spriteBatch = new SpriteBatch();
    background = new Texture(Gdx.files.internal("data/planet.jpg"));
    background.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    logo = new Texture(Gdx.files.internal("data/title.png"));
    logo.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    font = new BitmapFont(Gdx.files.internal("data/font16.fnt"), Gdx.files.internal("data/font16.png"), false);

    if (invaders.getController() != null) {
        invaders.getController().addListener(new ControllerAdapter() {
            @Override
            public boolean buttonUp(Controller controller,
                    int buttonIndex) {
                controller.removeListener(this);
                isDone = true;
                return false;
            }
        });
    }
}
项目:teavm-libgdx    文件:MainMenu.java   
public MainMenu (Invaders invaders) {
    super(invaders);

    spriteBatch = new SpriteBatch();
    background = new Texture(Gdx.files.internal("data/planet.jpg"));
    background.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    logo = new Texture(Gdx.files.internal("data/title.png"));
    logo.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    font = new BitmapFont(Gdx.files.internal("data/font16.fnt"), Gdx.files.internal("data/font16.png"), false);

    if (invaders.getController() != null) {
        invaders.getController().addListener(new ControllerAdapter() {
            @Override
            public boolean buttonUp(Controller controller, int buttonIndex) {
                controller.removeListener(this);
                isDone = true;
                return false;
            }
        });
    }
}
项目:libgdx-demo-invaders    文件:GameOver.java   
public GameOver (Invaders invaders) {
    super(invaders);
    spriteBatch = new SpriteBatch();
    background = new Texture(Gdx.files.internal("data/planet.jpg"));
    background.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    logo = new Texture(Gdx.files.internal("data/title.png"));
    logo.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    font = new BitmapFont(Gdx.files.internal("data/font16.fnt"), Gdx.files.internal("data/font16.png"), false);

    if (invaders.getController() != null) {
        invaders.getController().addListener(new ControllerAdapter() {
            @Override
            public boolean buttonUp(Controller controller,
                    int buttonIndex) {
                controller.removeListener(this);
                isDone = true;
                return false;
            }
        });
    }
}
项目:libgdx-demo-invaders    文件:MainMenu.java   
public MainMenu (Invaders invaders) {
    super(invaders);

    spriteBatch = new SpriteBatch();
    background = new Texture(Gdx.files.internal("data/planet.jpg"));
    background.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    logo = new Texture(Gdx.files.internal("data/title.png"));
    logo.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    font = new BitmapFont(Gdx.files.internal("data/font16.fnt"), Gdx.files.internal("data/font16.png"), false);

    if (invaders.getController() != null) {
        invaders.getController().addListener(new ControllerAdapter() {
            @Override
            public boolean buttonUp(Controller controller, int buttonIndex) {
                controller.removeListener(this);
                isDone = true;
                return false;
            }
        });
    }
}
项目:buffer_bci    文件:GameOver.java   
public GameOver (Invaders invaders) {
    super(invaders);
    spriteBatch = new SpriteBatch();
    background = new Texture(Gdx.files.internal("data/planet.jpg"));
    background.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    logo = new Texture(Gdx.files.internal("data/title.png"));
    logo.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    font = new BitmapFont(Gdx.files.internal("data/font16.fnt"), Gdx.files.internal("data/font16.png"), false);

    if (invaders.getController() != null) {
        invaders.getController().addListener(new ControllerAdapter() {
            @Override
            public boolean buttonUp(Controller controller,
                    int buttonIndex) {
                controller.removeListener(this);
                isDone = true;
                return false;
            }
        });
    }
}
项目:buffer_bci    文件:MainMenu.java   
public MainMenu (Invaders invaders) {
    super(invaders);

    spriteBatch = new SpriteBatch();
    background = new Texture(Gdx.files.internal("data/planet.jpg"));
    background.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    logo = new Texture(Gdx.files.internal("data/title.png"));
    logo.setFilter(TextureFilter.Linear, TextureFilter.Linear);

    font = new BitmapFont(Gdx.files.internal("data/font16.fnt"), Gdx.files.internal("data/font16.png"), false);

    if (invaders.getController() != null) {
        invaders.getController().addListener(new ControllerAdapter() {
            @Override
            public boolean buttonUp(Controller controller, int buttonIndex) {
                controller.removeListener(this);
                isDone = true;
                return false;
            }
        });
    }
}