comparison src/video/win32/SDL_win32events.c @ 2711:62e7af9b2b67

Added missing X1/X2 button support
author Sam Lantinga <slouken@libsdl.org>
date Mon, 25 Aug 2008 06:58:34 +0000
parents 44e49d3fa6cf
children 0e2b65f32298
comparison
equal deleted inserted replaced
2710:44e49d3fa6cf 2711:62e7af9b2b67
268 } 268 }
269 if (flags & RI_MOUSE_BUTTON_3_DOWN) { 269 if (flags & RI_MOUSE_BUTTON_3_DOWN) {
270 SDL_SendMouseButton(index, SDL_PRESSED, SDL_BUTTON_RIGHT); 270 SDL_SendMouseButton(index, SDL_PRESSED, SDL_BUTTON_RIGHT);
271 } else if (flags & RI_MOUSE_BUTTON_3_UP) { 271 } else if (flags & RI_MOUSE_BUTTON_3_UP) {
272 SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_RIGHT); 272 SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_RIGHT);
273 }
274 if (flags & RI_MOUSE_BUTTON_4_DOWN) {
275 SDL_SendMouseButton(index, SDL_PRESSED, SDL_BUTTON_X1);
276 } else if (flags & RI_MOUSE_BUTTON_4_UP) {
277 SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X1);
278 }
279 if (flags & RI_MOUSE_BUTTON_5_DOWN) {
280 SDL_SendMouseButton(index, SDL_PRESSED, SDL_BUTTON_X2);
281 } else if (flags & RI_MOUSE_BUTTON_5_UP) {
282 SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X2);
273 } 283 }
274 if (flags & RI_MOUSE_WHEEL) { 284 if (flags & RI_MOUSE_WHEEL) {
275 if (raw->data.mouse.usButtonData != 0) { 285 if (raw->data.mouse.usButtonData != 0) {
276 SDL_SendMouseWheel(index, 0, 286 SDL_SendMouseWheel(index, 0,
277 raw->data.mouse.usButtonData); 287 raw->data.mouse.usButtonData);