I’d like to equip my runtime (a screensaver) with a mouse sensor to quit the screensaver if the mouse is moved. I added a mouse/movement-sensor and bound it to a game/quit actuator.
This works fine in Blender’s preview, but the saved runtime always quits immediately.
The keyboard/all keys-sensor works in preview and in the runtime.
Do I have to script this?
I think I solved it now. I added a little script that checks a timer. If the timer reaches 3 seconds, it sets a variable (quit) when pressing a key or moving the mouse. This value is checked and the runtime quits (see image below).
I know that this is not an elegant method and I’m not sure how it performs on slow systems (maybe I have to raise the timer limit) - if anybody knows a better solution (and I bet that there IS a better solution :D) I would be very interested…