Browse Source

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

pull/2/head
Alibek Omarov 2 years ago
parent
commit
81c4acab66
  1. 4
      engine/platform/sdl/events.c

4
engine/platform/sdl/events.c

@ -283,10 +283,10 @@ static void SDLash_MouseEvent( SDL_MouseButtonEvent button ) @@ -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:

Loading…
Cancel
Save