Gornova / MarteEngine

MarteEngine is a Java Engine for videogames
http://randomtower.blogspot.com
Other
74 stars 20 forks source link

Dev #106

Closed AndreaPerrello closed 8 years ago

AndreaPerrello commented 8 years ago

private boolean autoCleanInput = true;

@Override
public void enter(GameContainer container, StateBasedGame game)
        throws SlickException {
    ME.world = this;
    if(autoCleanInput){
        container.getInput().clearControlPressedRecord();
        container.getInput().clearKeyPressedRecord();
        container.getInput().clearMousePressedRecord();
    }
}

public void setInputAutoClean(boolean auto){
    autoCleanInput = auto;
}
Gornova commented 8 years ago

Sorry for late response!

I'm closing this pull request because I've merged your change in maven branch, please see https://github.com/Gornova/MarteEngine/commit/6af9bc204b28fd44e8dddffa3dd18bbf29c9ffe2