【求助】关于监听器

我用监听器监测按钮是否按下,但是鼠标移动后监测不到ended,该怎么改??(~为空格)
local function callback1(sender,_type)
~if _type == ccui.TouchEventType.began then
~~cc.exports.callback_entry = director:getScheduler():scheduleScriptFunc(callback1_func,0.1,false)
~end
~if _type == ccui.TouchEventType.ended then
~~director:getScheduler():unscheduleScriptEntry(callback_entry)
~end
end

began监听事件中少加了个return true ?如果不加的话,默认是false,事件是不向下传递的,多看源码