def METHOD_NAME(self, ev):
    # New mouse / finger position
    if ev.type[:5] == 'mouse' or ev.type=='click':
        x, y = ev.pageX, ev.pageY
    else:
        touch = ev.targetTouches[0]
        x, y = touch.pageX, touch.pageY
    return x, y