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