Fix mouse right button and middle button incorrect identifications.