use of com.gemserk.componentsengine.input.LibgdxInputMappingBuilder in project commons-gdx by gemserk.
the class AdSimulatorApplicationDelegate method create.
@Override
public void create() {
applicationListener.create();
Texture.setEnforcePotImages(false);
Texture texture = new Texture(Gdx.files.internal("test/house-ad.png"));
texture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
houseAdSprite = new Sprite(texture);
spriteBatch = new SpriteBatch();
Texture.setEnforcePotImages(true);
adsParameters = new AdsParameters().delay(0).horizontalAlign(0).verticalAlign(0);
inputMonitor = new InputDevicesMonitorImpl<String>();
new LibgdxInputMappingBuilder<String>(inputMonitor, Gdx.input) {
{
monitorKeys("toggleAds", Keys.BACKSPACE, Keys.STAR);
}
};
}
Aggregations