mirror of https://github.com/axmolengine/axmol.git
check for WP8_SHADER_COMPILER
This commit is contained in:
parent
fbc25a055c
commit
e0157f7471
|
@ -122,8 +122,11 @@ void Device::setAccelerometerEnabled(bool isEnabled)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef WP8_SHADER_COMPILER
|
||||||
std::shared_ptr<cocos2d::InputEvent> event(new AccelerometerEvent(acc));
|
std::shared_ptr<cocos2d::InputEvent> event(new AccelerometerEvent(acc));
|
||||||
cocos2d::GLViewImpl::sharedOpenGLView()->QueueEvent(event);
|
cocos2d::GLViewImpl::sharedOpenGLView()->QueueEvent(event);
|
||||||
|
#endif
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue