public void reset() {
        x = 0;
        y = 0;
        inputPointerId = -1;
        for (int i = 0; i < niftyOwnsDragging.length; i++) {
            niftyOwnsDragging[i] = false;
        }
        shiftDown = false;
        ctrlDown = false;
    }
Reset internal state of the input system.
Must be called when the display is reinitialized
or when the internal state becomes invalid.
jme3-niftygui/src/main/java/com/jme3/niftygui/InputSystemJme.java