i’m using the defold-input cursor script to drag my gameobjects around.
but i don’t want the messages, when i show a gui screen to make the player pick an option.
so is there a way to temporarily disable the cursor script?
If the GUI has acquired input after your game it should get input first and you should be able to consume it by returning true in on_input of your gui_script.
Could you maybe release input focus on your game when you show a GUI and then acquire it again when the GUI is removed?
i found the problem:
in my gui i did everything to on a pressed event. then i consumed, and “gave controll” back to my main game… and then it picked up the released event…
so now in gui i react not on pressed, but released, so then the maingame gets no released.
works as designed