Change mouse. Based on what you described, almost 100% probability, that you using wired mouse, and its cable slow dying. One of the wires is broken and loses contact at a large deflection angle of the wire (relative to the mouse) and it turns off, in the future this process will progress, and you will notice it more often, and not only in games. Why is it currently only in the game? Just during the game the mouse moves with a larger amplitude (without tearing the mouse away from the mouse pad), and the wire deviates to a greater angle than during normal operation. You can try to move the wire to a large angle in other applications, the mouse in this case will also turn off, as in games. Well, if you have a wireless mouse, the reason is a broken USB connector.
Try to use this mouse on another computer and see what happens, what the jump said may be true, I'm playing with my headset broken the cable on one side, it's very tense, I do not hear the footsteps of the enemy when I see the enemy of surprise, I scream in fear Lol, and I am murdered XD
Thank you guys. @TheNME, don't know the year but is a logitech MX518 quite old I guess so probably @Jum_P is right but at mouse side of wire not at usb conector. I tried update mouse driver but then my graphic card died (problems never come alone) and had to get back to my old one :-( At least sound is working properly on my headphones @.BR.IRON MAN ;-)
I guess new pc must come soon if BF5 keeps going up...BFV foreverrr