ps4 controller disconnects on pc

Aug 15, 2018
2
0
10
I recently just got a PS4 controller to play some games on an emulator. I paired it successfully the first time but the buttons were very delayed and I thought that turning it off and then on again would fix it. After I turned it on for the second time it would glow blue and give me a message on screen that said "Add a device, Tap to set up your Wireless Controller". I proceeded to click on this and hit allow but as soon as i clicked it the controller turned off. It will now not connect at all and this has been going on for about an hour of me trying to connect it to my PC.