Commit Graph

4 Commits (a2c28ec188831831a8b744b2b1a50f81b95b7f4b)

Author SHA1 Message Date
Philipp Wiesemann 1968ff0471 Android: Fixed touch pressure being out of range.
According to the documentation of Android's MotionEvent, the getPressure() may
return values higher than 1 on some devices. To prevent passing such values into
SDL they are now corrected to 1 in Java before the JNI call (where it is assumed
to be correct).

Currently SDL only sends SDL_FINGERMOTION events if the touch state (position or
pressure) changed. By correcting pressure down to 1 some events may get dropped
in the rare case that only the pressure was changed but was out of range and the
position did not change.
2015-05-22 22:34:08 +02:00
Philipp Wiesemann f7ac02010f Android: Replaced logging tag strings with constant. 2015-05-16 21:15:59 +02:00
Reto Schneider e5f9c347ef Remove trailing spaces in Android source code. 2015-04-08 12:14:36 +02:00
Ryan C. Gordon b72938c861 Windows: Always set the system timer resolution to 1ms by default.
An existing hint lets apps that don't need the timer resolution changed avoid
this, to save battery, etc, but this fixes several problems in timing, audio
callbacks not firing fast enough, etc.

Fixes Bugzilla #2944.
2015-04-20 12:22:44 -04:00