Erratic mouse behaviour always makes me wonder : What input devices are connected to the PC ? Do you have something other than mouse and leyboard, like joystick, pedals etc... ?
If you have, see if the problem disappears when you disconnect them. (All input devices except keyboard and mouse)