SDL/test
Gabriel Jacobo dad420670f Fixes #2022, do not resume on Android when surfaceChanged
If the app is in landscape mode and the user presses the power button, a pause
is followed immediately by a surfaceChanged event because the lock screen
is shown in portrait mode. This triggers a "false" resume.
So, we just pause and resume following the onWindowFocusChanged events.

Also, wait for SDL_APP_WILLENTERBACKGROUND and SDL_APP_DIDENTERBACKGROUND before
blocking the event pump.
2013-08-12 11:13:50 -03:00
..
shapes Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
COPYING Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
Makefile.in Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
README Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
acinclude.m4 Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
aclocal.m4 Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
autogen.sh Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
checkkeys.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
configure Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
configure.in Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
gcc-fat.sh Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
icon.bmp Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
loopwave.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
moose.dat Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
picture.xbm Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
relative_mode.markdown Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
sample.bmp Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
sample.wav Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testatomic.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testaudioinfo.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_audio.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_clipboard.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_events.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_keyboard.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_main.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_mouse.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_pixels.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_platform.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_rect.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_render.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_rwops.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_sdltest.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_stdlib.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_suites.h Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_surface.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_syswm.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_timer.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testautomation_video.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testdraw2.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testdrawchessboard.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testerror.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testfile.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testgamecontroller.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testgesture.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testgl2.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testgles.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testhaptic.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testiconv.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testime.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testintersections.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testjoystick.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testkeys.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testloadso.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testlock.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testmessage.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testmultiaudio.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testnative.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testnative.h Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testnativecocoa.m Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testnativew32.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testnativex11.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testoverlay2.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testplatform.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testpower.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testrelative.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testrendercopyex.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testrendertarget.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testresample.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testrumble.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testscale.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testsem.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testshader.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testshape.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testsprite2.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testspriteminimal.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
teststreaming.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testthread.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testtimer.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testver.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
testwm2.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
torturethread.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
utf8.txt Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00

README

These are test programs for the SDL library:

	checkkeys	Watch the key events to check the keyboard
	loopwave	Audio test -- loop playing a WAV file
	testaudioinfo	Lists audio device capabilities
	testcdrom	Sample audio CD control program
	testerror	Tests multi-threaded error handling
	testfile	Tests RWops layer
	testgl2		A very simple example of using OpenGL with SDL
	testhread	Hacked up test of multi-threading
	testiconv	Tests international string conversion
	testjoystick	List joysticks and watch joystick events
	testkeys	List the available keyboard keys
	testloadso	Tests the loadable library layer
	testlock	Hacked up test of multi-threading and locking
	testmultiaudio	Tests using several audio devices
	testoverlay2	Tests the overlay flickering/scaling during playback.
	testpalette	Tests palette color cycling
	testplatform	Tests types, endianness and cpu capabilities
	testsem		Tests SDL's semaphore implementation
	testshape	Tests shaped windows
	testsprite2	Example of fast sprite movement on the screen
	testtimer	Test the timer facilities
	testver		Check the version and dynamic loading and endianness
	testwm2		Test window manager -- title, icon, events
	torturethread	Simple test for thread creation/destruction