SDL-mirror/android-project
Sam Lantinga 40c6294290 Fixed bug 1368 - Enabling joystick subsystem cause an infinite loop
morgan.devel@gmail.com 2012-01-13 00:32:23 PST

The android version of SDL_SYS_JoystickUpdate doesn't check if there is
actually new data and always generate the SDL_JOYAXISMOTION event.
Consequently, doing a while(SDL_PollEvent()) will result in an endless loop.

The attached patch fix this issue.

It also scale the incoming values properly in the Sint16 range. The scale from
[-gravity;+gravity] is done directly in the java part because one may want to
map the sensor values with a non-linear method for example.
2012-01-13 20:57:35 -05:00
..
jni Added the Android project and lots of info to README.android 2011-01-06 17:12:31 -08:00
res Added the Android project and lots of info to README.android 2011-01-06 17:12:31 -08:00
src/org/libsdl/app Fixed bug 1368 - Enabling joystick subsystem cause an infinite loop 2012-01-13 20:57:35 -05:00
AndroidManifest.xml Added the Android project and lots of info to README.android 2011-01-06 17:12:31 -08:00
build.properties Added the Android project and lots of info to README.android 2011-01-06 17:12:31 -08:00
build.xml Added the Android project and lots of info to README.android 2011-01-06 17:12:31 -08:00
default.properties Bumped default Android API target to 5 (Android 2.0, up from 1.6). 2011-10-15 14:25:00 -07:00
local.properties Added the Android project and lots of info to README.android 2011-01-06 17:12:31 -08:00