I'm building a small game using jquery and javascript.
It's a game for catching the fruits falling into the basket. The basket should move left or right on turning the phone left or right.
Since I am new to Javascript I don't know exactly which event listener must be called to check for the same.
Please let me know how can we move the basket left or right based on turning screen from left to right.