Fixe einen schweren Bug, bei dem andere Maustasten nicht ausgelesen

wurden, wenn Maus 1 gedrückt war
This commit is contained in:
Yamagi Burmeister 2010-11-01 15:24:25 +00:00
parent 435ae096e4
commit 46e378c6d4

View file

@ -302,19 +302,23 @@ void IN_Update(void)
{
mouse_buttonstate |= (1 << 0);
}
else if (SDL_BUTTON(3) & bstate)
if (SDL_BUTTON(3) & bstate)
{
mouse_buttonstate |= (1 << 1);
}
else if (SDL_BUTTON(2) & bstate)
if (SDL_BUTTON(2) & bstate)
{
mouse_buttonstate |= (1 << 2);
}
else if (SDL_BUTTON(6) & bstate)
if (SDL_BUTTON(6) & bstate)
{
mouse_buttonstate |= (1 << 3);
}
else if (SDL_BUTTON(7) & bstate)
if (SDL_BUTTON(7) & bstate)
{
mouse_buttonstate |= (1 << 4);
}