2015-04-20 13:55 GMT+02:00 Nicolai Hess <nicolaihess@web.de>:
2015-04-20 13:13 GMT+02:00 <merwanouddane@gmail.com>:
Hello,
We donât lose all keystroke events, but they are replaced by keydown events.
Yes, KeyDown/KeyUp are working and instead of a keystroke event another keydown is sent. This is strange, I don't know exactly how the SDL event processing can influence the main window events. Maybe this has something to do how we look for new events in the SDL2DisplayPlugin. For me the call to SDL_PumpEvents looks unnecessary, maybe this is the cause?
So, I removed the call to SDL_PumpEvents, and now keystroke events are still working in the main window after opening an OSWindow. @Esteban Can you check if this is working on other platforms too.
nicolai
Merwan
*De :* Nicolai Hess *Envoyé :* âlundiâ â20â âavrilâ â2015 â09â:â36 *à :* Any question about pharo is welcome; Esteban Lorenzano
2015-04-20 8:38 GMT+02:00 Matthieu Lacaton <matthieu.lacaton@gmail.com>:
Hello,
Thanks for your answers ! I have multiple remarks here :
1) I know that SDL2 should not be used "as is" in Pharo and I should use OSWindow instead, that's why I won't use SDL2 directly anymore.
On windows there is currently an issue if you use OSWindow instead of directly use SDL. If you create a window with OSWindow, (like in the SDL2Example>>osWindow) you will loose all "keystroke" events in the main pharo window. I don't know yet why this happens.
nicolai