dx = Mouse.getDX(); dy = Mouse.getDY(); if (virgin && (dx != 0 || dy != 0)) { dx = dy = 0; virgin = false; }
if (Mouse.isGrabbed()) { dx = Mouse.getDX(); dy = Mouse.getDY(); } else { dx = Mouse.getEventX(); dy = Mouse.getEventY(); } if (virgin && (dx != 0 || dy != 0)) { dx = dy = 0; virgin = false; }
    public void poll() {      dx = Mouse.getDX();      dy = Mouse.getDY();			if (virgin && (dx != 0 || dy != 0)) {				dx = dy = 0;				virgin = false;			}    }