Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Renamed SDLGenericMotionListener back to SDLGenericMotionListener_API12
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
android-project/src/org/libsdl/app/SDLActivity.java
|
@@ -950,7 +950,7 @@ public SDLSurface(Context context) { |
|
|
mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); |
|
|
|
|
|
if(Build.VERSION.SDK_INT >= 12) { |
|
|
setOnGenericMotionListener(new SDLGenericMotionListener()); |
|
|
setOnGenericMotionListener(new SDLGenericMotionListener_API12()); |
|
|
} |
|
|
|
|
|
// Some arbitrary defaults to avoid a potential division by zero |
|
@@ -1506,7 +1506,7 @@ public boolean handleMotionEvent(MotionEvent event) { |
|
|
} |
|
|
} |
|
|
|
|
|
class SDLGenericMotionListener implements View.OnGenericMotionListener { |
|
|
class SDLGenericMotionListener_API12 implements View.OnGenericMotionListener { |
|
|
// Generic Motion (mouse hover, joystick...) events go here |
|
|
@Override |
|
|
public boolean onGenericMotion(View v, MotionEvent event) { |
|
|