diff --git a/cocos/core/platform/event-manager/input-manager.ts b/cocos/core/platform/event-manager/input-manager.ts index 9c23e25dc5..451e9150d0 100644 --- a/cocos/core/platform/event-manager/input-manager.ts +++ b/cocos/core/platform/event-manager/input-manager.ts @@ -526,7 +526,9 @@ class InputManager { if (JSB || RUNTIME_BASED) { // @ts-ignore - jsb.device.setMotionInterval(interval); + if (jsb.device && jsb.device.setMotionInterval) { + jsb.device.setMotionInterval(interval); + } } } }