Combined redundant captureMouse()/capturePointer() and releaseMouse()/releasePointer() functions