How to catch/react on window resize events
-
Hello!
Could you, please, provide a few examples? I need to catch window resize events to actually determine the part of Map is going to fit into view port.
Thank you!
-
Hi, checks SDL events.
easiest way to handle SDL events directly:core::getDispatcher()->addEventListener(core::EVENT_SYSTEM, [=](Event* ev){ SDL_Event *event = (SDL_Event*)ev.userData; ///check SDL docs for more info });
don't forget to call getStage()->setSize to new size
-
Thanks, this is what I looked for!