Hook up pointer events.