Add isPrimary field to pointer event shim. Closes #708