Made chanes to incorporate the new rotation from optical mouse