Hello,
Bart, if you have a little time to look at this...
So after applying sdl2 diff from Jason on svn722
As explained before, this leads to have a choice in DirectInputSystem.cpp (CDirectInputSystem::Poll())
either we use polling windows message method (PeekMessage)
->window closing cross box doesn't work (Supermodel.exe lostwsga.zip)
->rawinput works (Supermodel.exe -input-system=rawinput lostwsga.zip)
or we use polling sdl message method (SDL_PollEvent)
->window closing cross box works (Supermodel.exe lostwsga.zip)
->rawinput doesn't work (Supermodel.exe -input-system=rawinput lostwsga.zip)
I may have found a way to have all working normally
if we did that in the polling sdl message and by removing the window message process:
- Code: Select all
SDL_Event e;
SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE); //disabled by default
while (SDL_PollEvent(&e))
{
if (e.type == SDL_QUIT)
return false;
else if (e.type == SDL_SYSWMEVENT)
{
//SDL_SysWMmsg *wmMsg = e.syswm.msg;
if (m_useRawInput) ProcessRawInput((HRAWINPUT)e.syswm.msg->msg.win.lParam);
}
}
I've got that
->window closing cross box works (but not working in rawinput mode. I guess this is because mouses are captured in raw mode) (Supermodel.exe lostwsga.zip)
->rawinput works (Supermodel.exe -input-system=rawinput lostwsga.zip)
Does that sound right for you ?
++
-----------------------
Edit:
Re,
Ian, a question for you
what do you think of this video ?
look at shadow and light brakes
1st part is svn 722 with sdl1 (normal), 2nd part is svn 722 with sdl2
https://yadi.sk/i/TY7Z256F3U6FxyI got the same symptom when I tried sdl2, years ago. So when Jason posted the sdl2 diff, I checked the shadows and if I remember well, I didn't get this trouble. but now, problem returns
Very strange...
++