Every time I click on a button the mouse position goes to the top left screen position. How to solve that?

do you have a controller hooked up onto your computer?