Hidden mouse problem

Hi,

when mouse is hidden, it still can click on gui elements. for example when i have ship control on mouse ale lmb for fire, instead of firing, it clicking on the button which is in under the invisible cursor :slight_smile:

can i globally turn input events to ignore mode when mouse is hidden and enable it when mouse is shown, for whole gui instead of every element?

edit:
using this as workaround (evt.setConsumed() doesnt work at this level)


        screen = new Screen(app) {
            @Override
            public void onMouseButtonEvent(MouseButtonEvent evt) {
                if(app.getInputManager().isCursorVisible()) {
                    super.onMouseButtonEvent(evt);
                }
            }
            @Override
            public void onMouseMotionEvent(MouseMotionEvent evt) {
                if(app.getInputManager().isCursorVisible()) {
                    super.onMouseMotionEvent(evt);
                }
            }
        };