forked from geode-sdk/android-launcher
cleanup motionevent
This commit is contained in:
1 file changed
+1
-2
@@ -277,8 +277,7 @@ class Cocos2dxGLSurfaceView(context: Context) : GLSurfaceView(context) {
|
|||||||
return super.onGenericMotionEvent(event)
|
return super.onGenericMotionEvent(event)
|
||||||
}
|
}
|
||||||
|
|
||||||
val action = event?.action?.and(MotionEvent.ACTION_MASK)
|
if (event?.action == MotionEvent.ACTION_SCROLL) {
|
||||||
if (action == MotionEvent.ACTION_SCROLL) {
|
|
||||||
val scrollX = event.getAxisValue(MotionEvent.AXIS_HSCROLL)
|
val scrollX = event.getAxisValue(MotionEvent.AXIS_HSCROLL)
|
||||||
val scrollY = event.getAxisValue(MotionEvent.AXIS_VSCROLL)
|
val scrollY = event.getAxisValue(MotionEvent.AXIS_VSCROLL)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user