Added captured cursor mode.