How to detect when player Camera is moved to a side

I wanna achieve an effect like many games do when their camera is turned around then there is small blur at edges of the screen that occurs but I’m not sure how to detect if I’m moving my camera to the sides or up and down so any help would be appreciated (Just need help with detecting the player moving the camera)