[SDL] blitting and alpha blending

Mike Mullen mmullen2042 at rogers.com
Sun Sep 22 15:20:01 PDT 2002


It wouldn't be perfectly accurate, but couldn't you keep track of where
the mouse is on the screen with local variables and then use those for
the click, rather than the ones returned by the click event?


On Fri, 2002-09-06 at 10:22, Matthew Bloch wrote:
> Hi there;
> 
> I'm using SDL 1.2.4 in an environment with a touch screen: 800x600x32 video 
> display.  It's actually being used via Ruby and the RUDL library but that's a 
> very thin layer which I can see is doing the right thing.
> 
> The problem I'm seeing concerns the times when MOUSEBUTTONDOWN events come 
> through: on Windows NT terminals, everything works as expected.  Under 
> Windows 2000, the touches are detected wrongly: most of them come through to 
> the program with either the X or Y co-ordinates set to 0 or 799 (X) or 599 
> (Y), as if the user is consistently poking at one edge of the screen (they're 
> not, I'm assured).
> 
> I've not got physical access to the machine where this happens, and I cannot 
> duplicate it on my own Linux, Windows 2000 Pro, NT4, XP or 98 setups.  I 
> suspect that it's the fault of the touch-screen drivers, but it's still my 
> problem in that "well all the other games work on this terminal, why doesn't 
> yours".
> 
> So assuming nobody recognises the problem, Is there some way in the SDL API 
> that I can read the mouse co-ordinates through a different native API?  Any 
> other suggested hacks?
> 
> thanks,
> 
> -- 
> Matthew       > http://www.soup-kitchen.net/
>               > ICQ 19482073
> 
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
-- 

End of Rant.

Jimmy
Jimmy's World (http://www.jimmysworld.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020906/839a8187/attachment-0008.pgp>


More information about the SDL mailing list