how to rotate a sphere in vr like google earth vr

help with logic please!!! I need to be able to rotate a sphere like in google earth vr but how can I first check if my controller is moving or not, I’m still nubie and don’t understand many things but please give me ideas on how to do this