[SDL] mousewheel support under win9x
Dan Gudmundsson
dgud at erix.ericsson.se
Sat Nov 23 05:53:14 PST 2002
+allow post
I only get released or up events from the mouse wheels
so test with changing the code to test SDL_MOUSEBUTTONDOWN
instead.
/Dan
Nehal Mistry writes:
> i'll fix it up... mozilla mail client problems..
> if it still doesnt paste correctly fix it urself
>
> ============
> #include <SDL.h>
> #include <SDL_events.h>
>
> int main(int argc, char **argv)
> {
> SDL_Event event;
> SDL_Surface *screen;
>
> SDL_Init(SDL_INIT_EVERYTHING);
> screen = SDL_SetVideoMode(640, 480, 16, SDL_SWSURFACE);
> SDL_LockSurface(screen);
>
> for (;;) {
> SDL_WaitEvent(&event);
> if (event.type == SDL_MOUSEBUTTONDOWN)
> exit(0);
> }
> }
More information about the SDL
mailing list