| Summary: | Mouse motion not registering | ||
|---|---|---|---|
| Product: | SDL | Reporter: | ralphmerridew <ralphmerridew> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 1.2.11 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Attachments: | DGA detection test program | ||
|
Description
ralphmerridew
2007-06-14 07:47:49 UTC
Can you try exporting an environment variable before running these games? export SDL_VIDEOTARGET=x11 # ...then launch the game... ./NameOfGameToRun It might be using the DGA driver by default or something. --ryan. Tried that. No change in result. Clarification to prior comments: Some programs appear to detect mouse motion. For example, Enigma will launch the ball in to the SSE whenever I move the mouse; lbreakout2 does not appear to notice mouse motion. I'm seeing this bug in Windows XP as well, with the 1.2.11 runtimes. Ralph, what if you set this environment variable: export SDL_VIDEO_X11_DGAMOUSE=0 Michael, can you put together a minimal test case for Windows XP? I just tried this myself and it worked fine. Can you also grab the latest SVN snapshot and see if that fixes it? http://www.libsdl.org/tmp/SDL-1.2.zip (In reply to comment #4) > Ralph, what if you set this environment variable: > export SDL_VIDEO_X11_DGAMOUSE=0 > > Michael, can you put together a minimal test case for Windows XP? I just tried > this myself and it worked fine. Can you also grab the latest SVN snapshot and > see if that fixes it? > http://www.libsdl.org/tmp/SDL-1.2.zip > Excellent! That works, though I have to start the program from an xterm. I'll look into ways to get that command run before menu items. Thank you! I can reproduce this, so I'll take a look. Thanks! Michael, please enter a separate bug with test case for the issue you're seeing on Windows XP. So it appears that in the latest X servers DGA1 isn't just deprecated, it's actually gone. If you use the old API functions, they advertise no direct access, and if you try to set them, on some servers they work but still don't advertise that they work, and on others they don't work. I think it's time to finally retire the X11 DGA1 code. *sigh* For now I'm going to disable the DGA mouse code by default. Created attachment 223 [details]
DGA detection test program
Can you build and run this test program and paste the output?
gcc -o testdga testdga.c -lX11 -lXxf86dga
(In reply to comment #9) > Created an attachment (id=223) [details] > DGA detection test program > > Can you build and run this test program and paste the output? > gcc -o testdga testdga.c -lX11 -lXxf86dga > Not sure whether that was for me or Michael, but if it was for me: Version = 2.00 Direct Video = 0 NO-DirectGraphics NO-DirectMouse NO-DirectKeyb Thanks! This is fixed in revision 3177. Some X servers advertise the DGA extension but don't support DGA1 anymore. :) |