加速度传感器无法获取z轴加速度?

手册里面的范例是获取x和y轴的数据,API中查到有z轴,我尝试使用event.acc.z无法获取,请问应该如何获取z轴加速度?
cc.Class({
extends: cc.Component,
onLoad () {
// open Accelerometer
cc.inputManager.setAccelerometerEnabled(true);
cc.systemEvent.on(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
},

onDestroy () {
    cc.systemEvent.off(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
},

onDeviceMotionEvent (event) {
    cc.log(event.acc.x + "   " + event.acc.y);
},

});

是不是本身就cocoscreator的加速度传感器监听事件自身就不支持获取z轴?