Mingw mouse update failure

I’m using SDL in a mingw application, and the mouse coordinates are not
being updated. They seem to be set once the application is started, and
further calls to SDL_GetMouseState always return the same value. I’m
using SDL following the directions given here:
http://www.spacejack.org/games/mingw/mingw-sdl.html . Has anyone had a
problem like this?

System specs:
win2k
g++ 3.2
sdl-1.2.5 mingw version (pre-compiled)

PS, I’m not on the list, so please reply-to-all so I get to see the
answers :slight_smile:

Nope, I use MinGW32 and have no problems at all with that.

Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy> ----- Original Message -----

From: grovenjl@rose-hulman.edu [mailto:grovenjl at rose-hulman.edu]
Sent: Mi?rcoles, 20 de Agosto de 2003 05:07 p.m.
To: sdl at libsdl.org
Subject: [SDL] mingw mouse update failure

I’m using SDL in a mingw application, and the mouse coordinates are not being updated. They seem to be set once the application is started, and further calls to SDL_GetMouseState always return the same value. I’m using SDL following the directions given here: http://www.spacejack.org/games/mingw/mingw-sdl.html . Has anyone had a problem like this?

System specs:
win2k
g++ 3.2
sdl-1.2.5 mingw version (pre-compiled)

PS, I’m not on the list, so please reply-to-all so I get to see the answers :slight_smile:


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Are you clearing the event queue with SDL_PumpEvents before reading the
mouse state ??

Losky

El 2003.08.20 17:07, grovenjl at rose-hulman.edu escribi?:> I’m using SDL in a mingw application, and the mouse coordinates are

not
being updated. They seem to be set once the application is started,
and
further calls to SDL_GetMouseState always return the same value. I’m
using SDL following the directions given here:
http://www.spacejack.org/games/mingw/mingw-sdl.html . Has anyone had
a
problem like this?

System specs:
win2k
g++ 3.2
sdl-1.2.5 mingw version (pre-compiled)

PS, I’m not on the list, so please reply-to-all so I get to see the
answers :slight_smile:


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I’m using SDL in a mingw application, and the mouse coordinates are not
being updated. They seem to be set once the application is started, and
further calls to SDL_GetMouseState always return the same value. I’m
using SDL following the directions given here:
http://www.spacejack.org/games/mingw/mingw-sdl.html . Has anyone had a
problem like this?

I mentioned this on IRC, but this is the frequently encountered problem
addressed in the FAQ where the application is using WinMain() when it
can just use:
int main(int argc, char *argv[])
on all platforms, and should on Windows because SDL needs to initialize
some data for DirectInput to work.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

“Sam Lantinga” ha scritto nel messaggio
news:E19q5wI-0006eg-00 at twomix.devolution.com

I mentioned this on IRC, but this is the frequently encountered problem
addressed in the FAQ where the application is using WinMain() when it
can just use:
int main(int argc, char *argv[])
on all platforms, and should on Windows because SDL needs to initialize
some data for DirectInput to work.

is equal use SDL_main in place of WinMain or of main ???

“Sam Lantinga” ha scritto nel messaggio
news:E19q5wI-0006eg-00 at twomix.devolution.com

I mentioned this on IRC, but this is the frequently encountered problem
addressed in the FAQ where the application is using WinMain() when it
can just use:
int main(int argc, char *argv[])
on all platforms, and should on Windows because SDL needs to initialize
some data for DirectInput to work.

is equal use SDL_main in place of WinMain or of main ???

Yes.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment