Renamed SDLGenericMotionListener back to SDLGenericMotionListener_API12
This commit is contained in:
parent
bc4a24e207
commit
1163b6da1c
1 changed files with 2 additions and 2 deletions
|
@ -950,7 +950,7 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
|
||||||
mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
|
mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
|
||||||
|
|
||||||
if(Build.VERSION.SDK_INT >= 12) {
|
if(Build.VERSION.SDK_INT >= 12) {
|
||||||
setOnGenericMotionListener(new SDLGenericMotionListener());
|
setOnGenericMotionListener(new SDLGenericMotionListener_API12());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some arbitrary defaults to avoid a potential division by zero
|
// Some arbitrary defaults to avoid a potential division by zero
|
||||||
|
@ -1506,7 +1506,7 @@ class SDLJoystickHandler_API12 extends SDLJoystickHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class SDLGenericMotionListener implements View.OnGenericMotionListener {
|
class SDLGenericMotionListener_API12 implements View.OnGenericMotionListener {
|
||||||
// Generic Motion (mouse hover, joystick...) events go here
|
// Generic Motion (mouse hover, joystick...) events go here
|
||||||
@Override
|
@Override
|
||||||
public boolean onGenericMotion(View v, MotionEvent event) {
|
public boolean onGenericMotion(View v, MotionEvent event) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue