SDL-mirror/include
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
..
begin_code.h Updated copyright date 2008-12-08 00:27:32 +00:00
close_code.h Updated copyright date 2008-12-08 00:27:32 +00:00
doxyfile SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
SDL.h First commit for SDL atomic operations. 2009-06-09 17:33:44 +00:00
SDL_atomic.h indent is really bad at handling assembly 2009-06-10 13:38:19 +00:00
SDL_audio.h First shot at new audio resampling code. 2009-01-11 04:46:42 +00:00
SDL_cdrom.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_compat.h Added an ifdef so that if you 2009-06-04 21:00:45 +00:00
SDL_config.h.default Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_config.h.in First commit for SDL atomic operations. 2009-06-09 17:33:44 +00:00
SDL_config_dreamcast.h First commit for SDL atomic operations. 2009-06-09 17:33:44 +00:00
SDL_config_iphoneos.h Initial work on power subsystem for SDL 1.3. 2009-06-07 06:06:35 +00:00
SDL_config_macosx.h First commit for SDL atomic operations. 2009-06-09 17:33:44 +00:00
SDL_config_minimal.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_config_nintendods.h Initial work on power subsystem for SDL 1.3. 2009-06-07 06:06:35 +00:00
SDL_config_os2.h First commit for SDL atomic operations. 2009-06-09 17:33:44 +00:00
SDL_config_pandora.h Added missing header file for Pandora support 2009-06-10 13:53:53 +00:00
SDL_config_win32.h First commit for SDL atomic operations. 2009-06-09 17:33:44 +00:00
SDL_copying.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_cpuinfo.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_endian.h Fixed bug #537 2009-02-17 04:57:39 +00:00
SDL_error.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_events.h Fixed bug #750 2009-06-10 14:00:21 +00:00
SDL_haptic.h Final merge of Google Summer of Code 2008 work... 2008-08-25 09:55:03 +00:00
SDL_joystick.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_keyboard.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_keysym.h Make the SDL keysyms that represent unprintable ASCII values actually have 2009-01-04 17:10:04 +00:00
SDL_loadso.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_main.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_mouse.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_mutex.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_name.h
SDL_opengl.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_opengles.h indent 2009-05-23 22:41:08 +00:00
SDL_pixels.h Fixed 4 bit-per-pixel definition. Thanks Mike! 2009-06-09 04:34:50 +00:00
SDL_platform.h Corrected case for TargetConditionals.h 2008-12-14 07:22:15 +00:00
SDL_power.h Initial work on power subsystem for SDL 1.3. 2009-06-07 06:06:35 +00:00
SDL_quit.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_rect.h Added line clipping 2008-12-23 02:23:18 +00:00
SDL_rwops.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_scancode.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_stdinc.h Fixed bug #537 2009-02-17 04:57:39 +00:00
SDL_surface.h Added SDL_GetColorKey() 2009-04-03 13:27:33 +00:00
SDL_syswm.h GF header must be included before Photon header for QNX. 2009-04-28 06:04:21 +00:00
SDL_thread.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_timer.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_types.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_version.h Added missing void 2009-01-04 23:36:53 +00:00
SDL_video.h indent 2009-05-23 22:41:08 +00:00