teeemcee
2009-12-14 05:25:14 -0800 (Mon, 14 Dec 2009)
785
Added io_mouserect, which prevents the mouse from leaving the window. Used by 
games calling initmouse, but not Custom. Also fixed bug 787 and obsolete mouse 
cursor clipping.

SDL_WM_GrabInput also grabs keyboard input like alt+tab, so instead I used the 
old warp-the-pointer-to-centre trick in gfx_sdl.

Under Windows SDL 1.2.14 is required for mouse clipping to not go crazy - 
previously SDL_WarpMouse had a long lag period before taking effect. I fell off 
my chair when I saw that bugfix in the changelog after wasting yet another hour 
or two on it.

Under Linux but not Windows, fbgfx also grabs alt+tab! Might have to port over 
the gfx_sdl code, or move it to allmodex.

Allegro apparently can't restrict the mouse to the window. Right now I have no 
desire to do anything about it.
---
U   wip/allmodex.bas
U   wip/docs/plotdict.xml
U   wip/drawing.bas
U   wip/gfx.bi
U   wip/gfx_alleg.bas
U   wip/gfx_fb.bas
U   wip/gfx_sdl.bas
U   wip/whatsnew.txt
U   wip/yetmore.bas
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to