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