You must play in windowed mode for the mouse to work outside UFOAI. It has something to do with part of the game engine. If you try to alt-tab out of the full screen, you can't use the mouse.
At this stage there is nothing that can be done about that. There will undoubtedly be a fix sometime in the future, but it is not going to be very soon, if I've read the relevant comments correctly.