Update GLFWController.java

This commit is contained in:
ArtDev 2021-08-28 08:37:36 +03:00 committed by GitHub
parent 3db1eec998
commit 00deca3360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,9 @@ public class GLFWController implements Controller{
@Override @Override
public boolean isButtonPressed(int index) { public boolean isButtonPressed(int index) {
return (buttonData.get(index) == 1); if(index < 8){
return (buttonData.get(index) == 1);
}else return false;
} }
@Override @Override