If it happened on two identical laptops, then it is probably a software/firmware issue. This often occurrs when drivers get automatically updated. It should be a simple matter of finding the drivers for your mouse and reinstalling them.
Failing that, double check your [Keyboards and Mice] under [Input Devices] in the [Control Panel] and make sure your mouse is selected and not the built-in touch pad.
I am assuming this is a USB mouse, though the trouble-shooting process for Bluetooth mice is not too much more complicated.
-Klosteral