Detect swipe direction with XTLayer in cocos2d-x