platform: sdl: fix right mouse button issuing wrong key code

This commit is contained in:
Alibek Omarov 2022-04-10 19:39:57 +03:00
parent 6f2fda427e
commit 81c4acab66
1 changed files with 2 additions and 2 deletions

View File

@ -283,10 +283,10 @@ static void SDLash_MouseEvent( SDL_MouseButtonEvent button )
case SDL_BUTTON_LEFT:
IN_MouseEvent( 0, down );
break;
case SDL_BUTTON_MIDDLE:
case SDL_BUTTON_RIGHT:
IN_MouseEvent( 1, down );
break;
case SDL_BUTTON_RIGHT:
case SDL_BUTTON_MIDDLE:
IN_MouseEvent( 2, down );
break;
case SDL_BUTTON_X1: