mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
Merge pull request #1637 from knoxHuang/master
fix DeviceMotion bug for fireball/issues/5679
This commit is contained in:
@@ -120,6 +120,9 @@ var SystemEvent = cc.Class({
|
||||
event: cc.EventListener.ACCELERATION,
|
||||
callback: function (acc, event) {
|
||||
event.type = EventType.DEVICEMOTION;
|
||||
if (CC_JSB) {
|
||||
event.acc = acc;
|
||||
}
|
||||
cc.systemEvent.dispatchEvent(event);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user