iphone swipe scripting

hi i’m a beginner to scripting and have yet to find a definitive answer elsewhere. i have a simple project of a globe in the scene and all i want to do is be able to rotate it in x and y axis depending on how you swipe across the iphone screen. i usually work in javascript but appreciate advice in any language. thanks in advance

Are you serious?

Check my answers here :

and :