Ok I used the other lib (libSDL2 instead of libSDL2-2.0.0) and it worked. 2017-09-28 16:07 GMT+02:00 Clément Béra <[email protected]>:
> > > 2017-09-28 15:33 GMT+02:00 Ronie Salgado <[email protected]>: > >> Hi Clement, >> >> The last time I checked, the 64 bits Mac VM version is eating the >> keyboard events, but not the mouse and other events. I guess that for the >> minheadless this is not required. The 32 bits version of Mac works by >> running the folowing script: >> >> FFIExternalStructure allSubclassesDo: #rebuildFieldAccessors >> >> I think that Pavel fixed this for Pharo 7. >> > > Ok. > > I had done that. > > But... > > I don't have any keyboard events. I have mouse and window events. I am > using Mac 32 bits. > > Ok... > > It seems that the keyboard events arrive as touch events... > > I will try to make that work. We'll see. > > Thanks > > > >> >> >> Btw for some reason in the one-click version of Pharo 32 bits on Mac >>> there is 2 SDL plugins (libSDL2-2.0.0 and libSDL2), which leads to >>> conflicts (the VM use randomly one lib or the other). I randomly chose one >>> that I use and deleted the other one, do you have advises on which one I >>> should prefer ? Maybe the events are working only with the other one ? >>> >> They should be a symlink. The correct one is the libSDL2-2.0. >> >> Best regards, >> Ronie >> >> 2017-09-28 15:02 GMT+02:00 Clément Bera <[email protected]>: >> >>> Hi Ronie, Hi all, >>> >>> I am trying to use OSWindow/SDL2 in Pharo 6,1 stable, I successfully >>> opened the window and I can draw on it with Athens (with minor changes >>> compared to Pharo 4). However, the user events (keyboard, mouse, etc.) are >>> not working. It seems some constants are not initialized but I am not sure >>> what is the right way to initialize them. >>> >>> If I am correct Ronie you said you had a script to run to make OSWindow >>> work in the latest Pharo version. Can you give it to me so I can use it ? I >>> just need keyboard events for my use case. >>> >>> Btw for some reason in the one-click version of Pharo 32 bits on Mac >>> there is 2 SDL plugins (libSDL2-2.0.0 and libSDL2), which leads to >>> conflicts (the VM use randomly one lib or the other). I randomly chose one >>> that I use and deleted the other one, do you have advises on which one I >>> should prefer ? Maybe the events are working only with the other one ? >>> >>> Thanks >>> >> >> >
