SDL2 Event Loop on Android - cannot push any new events into the queue -


i trying use sdl2 in new android application, should work well:

http://wilbefast.com/2011/11/11/recent-sdl-android-goodies/

it compiles without single problem , there sample project quite easy start using it. compiled library , started application, created event loop - in sdl 1.2 , tried push events function:

int sdl_pushevent(sdl_event * event); 

however, fails error value -1. defined sdl_main function source file:

http://hg.libsdl.org/sdl/file/6bb657898f55/src/main/android/sdl_android_main.cpp

my sdl_main function contains simple event loop:

sdl_event event;  (;;) {     sdl_waitevent(&event);     switch (event.type)     { case sdl_quit:     return;     case some_event:         break;     default:         break;     } } 

and that's all, no threads, no mutexes, no waits, simple main function. noticed event loop process events, event.type equals 2151293988, looks source sdlsurface instance, created in java code: http://hg.libsdl.org/sdl/file/6bb657898f55/android-project/src/org/libsdl/app/sdlactivity.java

why sdl_pushevent function doesn't work? has idea wrong?

sdl queue not start automatically after init, must started explicitly calling sdl_starteventloop();


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -