fixed right mouse procesing

This commit is contained in:
BADIM-PC\Vadim 2018-02-14 11:36:56 +03:00
parent 4b2db873a7
commit 65ce26d93c
1 changed files with 3 additions and 3 deletions

View File

@ -274,9 +274,9 @@ static void processMouse()
}
{
input->mouse.left = mb & SDL_BUTTON_LMASK;
input->mouse.middle = mb & SDL_BUTTON_MMASK;
input->mouse.right = mb & SDL_BUTTON_RMASK;
input->mouse.left = mb & SDL_BUTTON_LMASK ? 1 : 0;
input->mouse.middle = mb & SDL_BUTTON_MMASK ? 1 : 0;
input->mouse.right = mb & SDL_BUTTON_RMASK ? 1 : 0;
}
}