In SDL1.3 I don't get mouse events other than mouse1

This printfs ‘blah’ on all buttons in 1.2:

	if(sdl_event.type == SDL_MOUSEBUTTONDOWN || sdl_event.type ==

SDL_MOUSEBUTTONUP){
switch( sdl_event.button.button ) {
case SDL_BUTTON_LEFT: printf(“blah\n”); fflush(stdout); break;
case SDL_BUTTON_MIDDLE: printf(“blah\n”); fflush(stdout); break;
case SDL_BUTTON_RIGHT: printf(“blah\n”); fflush(stdout); break;
case SDL_BUTTON_WHEELUP: printf(“blah\n”); fflush(stdout); break;
case SDL_BUTTON_WHEELDOWN: printf(“blah\n”); fflush(stdout); break;
case 6: /K_MOUSE4;/ printf(“blah\n”); fflush(stdout); break;
case 7: /K_MOUSE5;/ printf(“blah\n”); fflush(stdout); break;
}
}

It doesn’t on 1.3.

Any idea what might be causing it?

I found the issue. The keys are completely unimplemented in
SDL_win32events.c. Nasty. It looks like someone accidentally deleted
them.On Sat, Aug 21, 2010 at 2:46 PM, Michael Menegakis <@Michael_Menegakis> wrote:

This printfs ‘blah’ on all buttons in 1.2:

? ? ? ? ? ? ? ?if(sdl_event.type == SDL_MOUSEBUTTONDOWN || sdl_event.type ==
SDL_MOUSEBUTTONUP){
? ? ? ? ? ? ? ? ? ? ? ?switch( sdl_event.button.button ) {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case SDL_BUTTON_LEFT: ? ? ? ? ? ? ? ? ? printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case SDL_BUTTON_MIDDLE: ? ? ? ? printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case SDL_BUTTON_RIGHT: ? ? ? ? ?printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case SDL_BUTTON_WHEELUP: ? ? ? ? ? ? ? ?printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case SDL_BUTTON_WHEELDOWN: ? ? ?printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case 6: /K_MOUSE4;/ ? ? ? ? ? ? ? ? ? printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case 7: /K_MOUSE5;/ ? ? ? ? ? ? ? ? ? printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ?}

It doesn’t on 1.3.

Any idea what might be causing it?

someone has patched it here
http://forums.libsdl.org/viewtopic.php?p=25224&sid=1d1240f3977dbbc0d785c4181d7c0c83On Sat, Aug 21, 2010 at 3:18 PM, Michael Menegakis <@Michael_Menegakis> wrote:

I found the issue. The keys are completely unimplemented in
SDL_win32events.c. Nasty. It looks like someone accidentally deleted
them.

On Sat, Aug 21, 2010 at 2:46 PM, Michael Menegakis <@Michael_Menegakis> wrote:

This printfs ‘blah’ on all buttons in 1.2:

? ? ? ? ? ? ? ?if(sdl_event.type == SDL_MOUSEBUTTONDOWN || sdl_event.type ==
SDL_MOUSEBUTTONUP){
? ? ? ? ? ? ? ? ? ? ? ?switch( sdl_event.button.button ) {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case SDL_BUTTON_LEFT: ? ? ? ? ? ? ? ? ? printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case SDL_BUTTON_MIDDLE: ? ? ? ? printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case SDL_BUTTON_RIGHT: ? ? ? ? ?printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case SDL_BUTTON_WHEELUP: ? ? ? ? ? ? ? ?printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case SDL_BUTTON_WHEELDOWN: ? ? ?printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case 6: /K_MOUSE4;/ ? ? ? ? ? ? ? ? ? printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?case 7: /K_MOUSE5;/ ? ? ? ? ? ? ? ? ? printf(“blah\n”); fflush(stdout); ? ? ? break;
? ? ? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ?}

It doesn’t on 1.3.

Any idea what might be causing it?