public static void handleMouse(EngineState engineState){
        while(Mouse.next() == true){
            int button = Mouse.getEventButton();
            int x = Mouse.getEventX();
            int y = Mouse.getEventY();

            boolean pressed = Mouse.getEventButtonState();

            if(pressed){
                engineState.mousePressed(button, x, y);
            }else{
                engineState.mouseReleased(button, x, y);
            }
        }
    }