Added checks if input is enabled
This commit is contained in:
parent
3f215573b5
commit
5800ccd567
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue