entryway
Forum Staple
Posts: 2587
Registered: 01-04 |
Grader said:
So you are saying that when WINDIB is used there's no way around to "free" the cursor?
It's possible to make it differently. PrBoom uses that method and that's because its behavior is different.
prboom.bat
SET SDL_VIDEODRIVER=windib
prboom.exe
But if you do not use this (current) technique:
SDL_GetRelativeMouseState(&x, &y);
D_PostEvent(ev_mouse, x, y);
SDL_WarpMouse(centerx, centery);
then mouse movements will be awful. PrBoom still has it. After I discovered why SDL mouse movement is so laggy in some situations (more correctly: I discovered how to fix, not why it happens) I recoded it in current way and most (all?) SDL-based ports have stolen that. You can find few topics about that here.
Current behaviour is much better, because mouse movement is smoother.
Last edited by entryway on 06-15-10 at 14:50
|