File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/org/cocos2dx/lib Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ class Cocos2dxGLSurfaceView(context: Context) : GLSurfaceView(context) {
250
250
private fun legacyKeyDown (keyCode : Int , keyEvent : KeyEvent ): Boolean {
251
251
return when (keyCode) {
252
252
KeyEvent .KEYCODE_BACK , KeyEvent .KEYCODE_MENU -> {
253
- if (keyEvent.repeatCount != 0 || BaseRobTopActivity .blockBackButton || manualBackEvents ) {
253
+ if (keyEvent.repeatCount != 0 || BaseRobTopActivity .blockBackButton) {
254
254
return true
255
255
}
256
256
queueEvent { cocos2dxRenderer.handleKeyDown(keyCode) }
@@ -287,7 +287,7 @@ class Cocos2dxGLSurfaceView(context: Context) : GLSurfaceView(context) {
287
287
super .onKeyDown(keyCode, event)
288
288
}
289
289
else -> {
290
- if (BaseRobTopActivity .blockBackButton || manualBackEvents ) {
290
+ if (BaseRobTopActivity .blockBackButton) {
291
291
return true
292
292
}
293
293
You can’t perform that action at this time.
0 commit comments