My mouse suddenly doesn't work

My mouse for some reason doesn't let me move the camera and perform attacks and can only move as a cursor in the menu but it can't interact with anything in Elden Ring, does someone know how to fix this?