SDL-mirror/src/events
Sam Lantinga 17db454b5c Fixed bug #750
Since many different event structures include windowID it should be placed near
the beginning of the structure (preferably right after type) so it's position
is the same between different events.

This is to avoid code like this:
if (event.type == SDL_WINDOWEVENT)
    win = event.window.windowID;
else if ((SDL_EVENTMASK(event.type) & SDL_KEYEVENTMASK) != 0)
    win = event.key.windowID;
else if (event.type == SDL_TEXTINPUT)
    win = event.text.windowID;
else if (event.type == SDL_MOUSEMOTION)
    win = event.motion.windowID;
else if ((SDL_EVENTMASK(event.type) & (SDL_MOUBUTTONDOWNMASK |
SDL_MOUBUTTONUPMASK)) != 0)
    win = event.button.windowID;
else if (event.type == SDL_MOUSEWHEEL)
    win = event.wheel.windowID;
...

in favor of:
win = event.window.windowID;

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403650
2009-06-10 14:00:21 +00:00
..
blank_cursor.h Von: Thomas Zimmermann 2009-06-03 04:37:27 +00:00
default_cursor.h Von: Thomas Zimmermann 2009-06-03 04:37:27 +00:00
scancodes_darwin.h Von: Thomas Zimmermann 2009-06-03 04:37:27 +00:00
scancodes_linux.h Von: Thomas Zimmermann 2009-06-03 04:37:27 +00:00
scancodes_win32.h Von: Thomas Zimmermann 2009-06-03 04:37:27 +00:00
scancodes_xfree86.h Von: Thomas Zimmermann 2009-06-03 04:37:27 +00:00
SDL_events.c Fixed bug #684 2009-02-17 05:59:40 +00:00
SDL_events_c.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_keyboard.c Von: Thomas Zimmermann 2009-06-03 04:37:27 +00:00
SDL_keyboard_c.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_mouse.c Fixed bug #750 2009-06-10 14:00:21 +00:00
SDL_mouse_c.h Fixed X11 mouse motion/button events - it's not actually safe to cast mouse events to device events. 2009-01-01 07:59:08 +00:00
SDL_quit.c Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_sysevents.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_windowevents.c * Implemented X11 fullscreen input grab 2008-12-17 07:17:54 +00:00
SDL_windowevents_c.h Updated copyright date 2008-12-08 00:27:32 +00:00