I use Windows Dev-Cpp and SDL 1.8 .
I try
SDL_GetMouseState(&mouseX,&mouseY);
in the main loop of a SDL-OpenGL program, it runs few seconds and it bugs.
Without this function the program runs . I saw someone’s with the same
problem on a forum.
Has someone a solution ? If anybody as a C source (not too big( 5Ko per
sec)) for windows with SDL+OpenGL+SDL_GetMouseState() , could you send me at
Drouin524 at aol.com (mailto:Drouin524 at aol.com) ?
Thanks.
i have used this function and it works fine, even with opengl.
try posting your code, maybe the bits around SDL_GetMouseState, or writing a
sample that shows the problem in the fewest lines possible.On 9/20/05, Drouin524 at aol.com wrote:
I use Windows Dev-Cpp and SDL 1.8 .
I try
SDL_GetMouseState(&mouseX,&mouseY);
in the main loop of a SDL-OpenGL program, it runs few seconds and it bugs.
Without this function the program runs . I saw someone’s with the same
problem on a forum.
Has someone a solution ? If anybody as a C source (not too big( 5Ko per
sec)) for windows with SDL+OpenGL+SDL_GetMouseState() , could you send me at
Drouin524 at aol.com ?
Thanks.
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
Now I verify the event 's type
if (event.type==SDL_MOUSEMOTION)
before SDL_GetMouseState and it works fine.