Added threshold to the rotation of device and made the left and right input independent to the rotation.