Simple Directmedia Layer
Go to file
Sam Lantinga 5512eac69f Fixed bug 2414 - Execute event watchers in the order they were added
Leonardo

Event watchers are being executed on the inverse order they are added because they are added to the head of the SDL_event_watchers list.

Since watchers are allowed to change events before they are reported (they shouldn't, imo), this breaks code that rely on watcher execution order (such as distributed event handling).

An easy scenario to see this behaving weird to the user is if you add an event watcher to check mouse coordinates and check them again in your event loop. If you add the watcher after renderer's one (which always happens after you have initialized renderer), you get the same event but different coordinates.

The proposed patch adds the event watcher in the tail of the list, not in the beginning, and correctly fixes this problem.
2014-02-22 15:27:11 -08:00
acinclude Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
android-project Try to work around Android's handling of static variables in terminated apps 2014-02-12 18:12:14 -03:00
build-scripts Enable ccache for Raspberry Pi buildbot script. 2013-12-15 00:21:42 -05:00
cmake Hooked up dynamic loading for Mir. 2014-02-03 11:52:54 -05:00
debian Updated SDL to version 2.0.2 2014-02-09 03:09:56 -08:00
include Fixed bug 2346 - Mac: mousewheel events have flipped horizontal scroll values 2014-02-22 14:57:12 -08:00
premake Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
src Fixed bug 2414 - Execute event watchers in the order they were added 2014-02-22 15:27:11 -08:00
test Improve testgles2 exit behavior (useful on Android) 2014-02-20 16:12:11 -03:00
VisualC Fixes #2408, VS2013: several projects of release build are not built 2014-02-20 17:03:55 -03:00
visualtest Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
Xcode Updated SDL to version 2.0.2 2014-02-09 03:09:56 -08:00
Xcode-iOS Implemented the Dynamic API magic. 2013-12-09 16:03:18 -05:00
.hgignore Ignore the buildbot build directories. 2014-02-02 21:38:16 -05:00
Android.mk Add Dynamic API to Android makefile. 2014-01-08 00:45:29 -05:00
autogen.sh Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
BUGS.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
CMakeLists.txt Fix Cmake so generated SOname matches autoconf's #. 2014-02-10 10:53:02 -05:00
configure Updated SDL to version 2.0.2 2014-02-09 03:09:56 -08:00
configure.in Updated SDL to version 2.0.2 2014-02-09 03:09:56 -08:00
COPYING.txt Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
CREDITS.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
INSTALL.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
Makefile.in Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
Makefile.minimal Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
Makefile.pandora Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
Makefile.psp Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
Makefile.wiz Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-android.txt Updated paths in README for Android. 2013-12-25 16:53:39 +01:00
README-cmake.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-directfb.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-dynapi.txt Adds README-dynapi.txt based on Ryan's G+ post (lightly edited) 2014-01-15 12:29:17 -03:00
README-gesture.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-hg.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-ios.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-linux.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-macosx.txt Updated README-macosx.txt to note new minimum requirements, end of PowerPC. 2014-02-07 12:03:02 -05:00
README-pandora.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-platforms.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-porting.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-psp.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-raspberrypi.txt Fixed typo in documentation. 2014-01-26 23:42:25 +01:00
README-SDL.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-touch.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-wince.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
README-windows.txt Corrected name of hint in README. 2014-02-15 23:52:04 +01:00
README.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
sdl2-config.in Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
sdl2.m4 Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
sdl2.pc.in Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
SDL2.spec.in Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
TODO.txt Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
VisualC.html Improve Android pause/resume behavior. 2013-11-29 10:06:08 -03:00
WhatsNew.txt Changed text in documentation. 2014-02-15 23:57:38 +01:00

                         Simple DirectMedia Layer

                                  (SDL)

                                Version 2.0

---
http://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed
to provide low level access to audio, keyboard, mouse, joystick, and graphics
hardware via OpenGL and Direct3D. It is used by video playback software,
emulators, and popular games including Valve's award winning catalog
and many Humble Bundle games.

SDL officially supports Windows, Mac OS X, Linux, iOS, and Android.
Support for other platforms may be found in the source code.

SDL is written in C, works natively with C++, and there are bindings 
available for several other languages, including C# and Python.

This library is distributed under the zlib license, which can be found
in the file "COPYING.txt".

The best way to learn how to use SDL is to check out the header files in
the "include" subdirectory and the programs in the "test" subdirectory.
The header files and test programs are well commented and always up to date.
More documentation and FAQs are available online at:
	http://wiki.libsdl.org/

If you need help with the library, or just want to discuss SDL related
issues, you can join the developers mailing list:
	http://www.libsdl.org/mailing-list.php

If you want to report bugs or contribute patches, please submit them to
bugzilla:
    http://bugzilla.libsdl.org/

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)