Hi Ronie... I need help again.
In fact I am still not able to work with SDL2 events in Mac with Pharo 6 nor 7.
In Pharo 6 and Pharo 7, 32 and 64 bits I need to run this code: 'FFIExternalStructure allSubclassesDo: #rebuildFieldAccessors'. In all cases I can open the window and draw on it with Cairo, but the problems lie with the events. In all cases when I start with��libSDL2 and��libSDL2-2.0.0 I have warnings in the command line (2 libs detected, a random one will be used each time), so I usually use only��libSDL2 which seems to work better.
In 32 bits (both Pharo 6 and 7) if I delete the��libSDL2-2.0.0 lib and use��libSDL2 only, I have mouse and window events but only *some* keyboard events. I have around 2/3 of the keyboard events, which makes the app very hard to use (Each time you press a key, you need to check if it worked or press it again if not). I don't know for sure if I have all the other events or only 2/3 of them too as there are so many.
In 64 bits, (both Pharo 6 and 7), whatever combination of lib I attempt I don't have *any* event (keyboard, mouse or window).
I have a working version in Pharo 4 where I have all the events. It's the same 32 bits lib so it has to come from something else (VM changes or image changes).
Any idea on what I have to fix to move from 2/3 of the events to all the events ?
What is the right way to get a working SDL2 window with Pharo 6/7 ?
Thanks