public boolean getInput() {
        while(Keyboard.next()) {
	    if(Keyboard.getEventKeyState()) {
                onKeyDown(Keyboard.getEventKey());
	    } else {
	        onKeyUp(Keyboard.getEventKey());
	    }
	}
        
        // mouse input
        //float mDX = Mouse.getDX() * 2.5f; // mouse sensitivity 2.5, testing stuff...
        //float mDY = -Mouse.getDY() * 2.5f; // invert y-axis to match all our coordinates
        
        //mouseX += mDX;
        //mouseY += mDY;
        
        float mDX = Mouse.getDX();
        float mDY = -Mouse.getDY();
        mouseX = Mouse.getX();
        mouseY = Display.getHeight() - Mouse.getY();
        /*
        if(mouseX < 0) {
            mouseX = 0;
        }
        else if(mouseX > Display.getWidth()) {
            mouseX = Display.getWidth();
        }
        if(mouseY < 0) {
            mouseY = 0;
        }
        else if(mouseY > Display.getHeight()) {
            mouseY = Display.getHeight();
        }
        * 
        */
        
        while(Mouse.next()) {
            int button = Mouse.getEventButton();
            int mX = Mouse.getEventX();
            int mY = Display.getHeight() - Mouse.getEventY(); // invert the y-axis to match all our coordinates
            if(button != -1) { // check that a state of a mouse button has changed
                if(Mouse.getEventButtonState()) {
                    onMouseDown((int)mX, (int)mY, button);
                }
                else {
                    onMouseUp((int)mX, (int)mY, button);
                }
            }
        }
        
        /*
        int mX = Mouse.getX();
        int mY = Display.getHeight() - Mouse.getY(); // invert the y-axis to match all our coordinates
        //mouseX = mX;
        //mouseY = mY;
        int mDX = Mouse.getDX();
        int mDY = -Mouse.getDY(); // invert y-axis yet again
        
        mouseX += mDX * 2.5f;
        mouseY += mDY * 2.5f;
        * 
        */
        
        if(mDX != 0 || mDY != 0) {
            onPointerMove((int)mouseX, (int)mouseY, (int)mDX, (int)mDY);
        }
        
        return false;
    }