src/video/win32/SDL_win32events.c
changeset 2975 317b2f8e5e4f
parent 2974 d2f68ec8c1d0
child 2990 502adab079a4
equal deleted inserted replaced
2974:d2f68ec8c1d0 2975:317b2f8e5e4f
   284                 SDL_SendMouseButton(index, SDL_PRESSED, SDL_BUTTON_X2);
   284                 SDL_SendMouseButton(index, SDL_PRESSED, SDL_BUTTON_X2);
   285             } else if (flags & RI_MOUSE_BUTTON_5_UP) {
   285             } else if (flags & RI_MOUSE_BUTTON_5_UP) {
   286                 SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X2);
   286                 SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X2);
   287             }
   287             }
   288             if (flags & RI_MOUSE_WHEEL) {
   288             if (flags & RI_MOUSE_WHEEL) {
   289                 if (raw->data.mouse.usButtonData != 0) {
   289                 SDL_SendMouseWheel(index, 0,
   290                     SDL_SendMouseWheel(index, 0,
   290                                    (short)raw->data.mouse.usButtonData);
   291                                        raw->data.mouse.usButtonData);
       
   292                 }
       
   293             }
   291             }
   294             SDL_stack_free(lpb);
   292             SDL_stack_free(lpb);
   295         }
   293         }
   296         return (0);
   294         return (0);
   297 
   295