Added checks if input is enabled

This commit is contained in:
Ziver Koc 2007-03-26 14:16:16 +00:00
parent 3f215573b5
commit 5800ccd567

View file

@ -24,9 +24,11 @@ public class InputHandler {
*/
public void update(){
for(int i=0; i<input.size() ;i++){
if(input.get(i).isEnabled()){
input.get(i).update();
}
}
}
/**
* renders all the inputs
@ -34,9 +36,11 @@ public class InputHandler {
*/
public void render(){
for(int i=0; i<input.size() ;i++){
if(input.get(i).isEnabled()){
input.get(i).render();
}
}
}
/**
* Add a input