Close all unnecessary programs and see if it works with your mouse unplugged, just to find out.

Could be your touchpad though.