Grade12Programs/src/game/Input.java
public static void handleHolding() {
        for (int i = 0; i < mouseInputs.length; i++) {
            if (mouseInputs[i] == 2) {
                mouseInputs[i] = 1;
            }
        }
        for (int i = 0; i < keyInputs.length; i++) {
            if (keyInputs[i] == 2) {
                keyInputs[i] = 1;
            }
        }
    }
// needs to be called every cycle to make sure clicks are registered properly 
needs to be called every cycle to make sure clicks are registered properly
needs to be called every cycle to make sure clicks are registered properly
public static void handleHolding() {
        for (int i = 0; i < mouseInputs.length; i++) {
            if (mouseInputs[i] == 2) {
                mouseInputs[i] = 1;
            }
        }
        for (int i = 0; i < keyInputs.length; i++) {
            if (keyInputs[i] == 2) {
                keyInputs[i] = 1;
            }
        }
    }
public static void handleHolding ( ) { for ( int i = 0 ; i < mouseInputs . length ; i ++ ) { if ( mouseInputs [ i ] == 2 ) { mouseInputs [ i ] = 1 ; } } for ( int i = 0 ; i < keyInputs . length ; i ++ ) { if ( keyInputs [ i ] == 2 ) { keyInputs [ i ] = 1 ; } } }
needs to be called every cycle to make sure clicks are registered properly
needs to be called every cycle to make sure clicks are registered properly