Gamepad suddenly stopped working in-game

Hi I suddenly started having an issue with my dualshock ps3 controller. I have it configured to work in my windows 10 and its recognized as an xbox 360 controller. My game was working fine just yesterday with the controller and everything was fine. But this morning it just suddenly stopped working in-game. The controller still works flawlessly in the editor viewport. Only when i press the play button it doesnt work. I tested by printing the “scale value” for the input and its printing 0.0 when im using controller but printing 1.0 when i press the keyboard button.

anybody got any idea whats going on?

Nevermind… I think it was a random bug… I restarted my computer and it is fixed.