You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- -- 是否是轻触(轻轻地按压)
- function cc.Touch:isPeek()
- if self.getForce then
- print("isPeek:"..self:getForce())
- return self:getForce() > 0.3;
- end
-
- return false
- end
-
- -- 是否是按压(用力按压)
- function cc.Touch:isPop()
- if self.getForce then
- print("isPop:"..self:getForce())
- return self:getForce() > 0.8;
- end
-
- return false
- end
|