If any of the required Origin services are disabled, then it can cause issues with the game engine and hence cause instability with HCI devices like the mouse.
It can also be caused by a corrupt cache or corrupted game files. The mouse does not work in Battlefront 2 if any of the overlay programs are interfering with the game.