ForceTap Events
ForceTap events receive the gesture event properties.
译:forcetap事件接收手势事件属性。
Events.ForceTap— Tap with high pressure. 译:具有压力高度的点击Events.ForceTapChange— Tap pressure sensitivity change. 译:改变压力点击的灵敏度Events.ForceTapStart— Start tap with high pressure. 译:具有压力高度的点击开始Events.ForceTapEnd— End tap with high pressure. 译:具有压力高度的点击结束
layerA = new Layer
layerA.on Events.ForceTap, (event) ->
print "Force tap"
ForceTap Event Shortcuts
译:forcetap事件的快捷键
# For Events.ForceTap
layerA.onForceTap ->
print "Force tap"
# For Events.ForceTapChange
layerA.onForceTapChange ->
print "Change of force tap pressure"
# For Events.ForceTapStart
layerA.onForceTapStart ->
print "Start force tap"
# For Events.ForceTapEnd
layerA.onForceTapEnd ->
print "End force tap"