Use pointers rather than const refs for event position arguments.