Added support for pointer mode control