comparison src/events/SDL_mouse.c @ 1674:7688a73b25b1 SDL-1.3

Finishing up keyboard code revamp, at least for now...
author Sam Lantinga <slouken@libsdl.org>
date Sun, 11 Jun 2006 05:27:10 +0000
parents 89f7510fe17a
children a1ebb17f9c52
comparison
equal deleted inserted replaced
1673:624e1412fbba 1674:7688a73b25b1
23 23
24 /* General mouse handling code for SDL */ 24 /* General mouse handling code for SDL */
25 25
26 #include "SDL_events.h" 26 #include "SDL_events.h"
27 #include "SDL_events_c.h" 27 #include "SDL_events_c.h"
28 #include "SDL_mouse_c.h"
29 #include "default_cursor.h" 28 #include "default_cursor.h"
30 29
31 30
32 static int SDL_num_mice; 31 static int SDL_num_mice;
33 static int SDL_current_mouse; 32 static int SDL_current_mouse;
331 event.button.which = (Uint8) index; 330 event.button.which = (Uint8) index;
332 event.button.state = state; 331 event.button.state = state;
333 event.button.button = button; 332 event.button.button = button;
334 event.button.x = mouse->x; 333 event.button.x = mouse->x;
335 event.button.y = mouse->y; 334 event.button.y = mouse->y;
336 event.button.windowID = windowID; 335 event.button.windowID = mouse->focus;
337 if ((SDL_EventOK == NULL) || (*SDL_EventOK) (&event)) { 336 if ((SDL_EventOK == NULL) || (*SDL_EventOK) (&event)) {
338 posted = 1; 337 posted = 1;
339 SDL_PushEvent(&event); 338 SDL_PushEvent(&event);
340 } 339 }
341 } 340 }