Fixed right click on 3 button mouse.

This commit is contained in:
n-a-c-h
2006-03-26 00:48:57 +00:00
parent 7231241ce7
commit 624bc5fe85

View File

@@ -247,18 +247,20 @@ int Main_Proc(void)
case 5: case 5:
ProcessKeyBuf(SDLK_DOWN); ProcessKeyBuf(SDLK_DOWN);
break; break;
case 3:
MouseButton |= 2;
break;
case 2: case 2:
ProcessKeyBuf(SDLK_RETURN); ProcessKeyBuf(SDLK_RETURN);
// Yes, this is intentional - DDOI // Yes, this is intentional - DDOI
default: case 1:
MouseButton = MouseButton | event.button.button; MouseButton |= event.button.button;
break; break;
} }
break; break;
case SDL_MOUSEBUTTONUP: case SDL_MOUSEBUTTONUP:
MouseButton = MouseButton &= ~event.button.button;
MouseButton & ~event.button.button;
break; break;
case SDL_JOYHATMOTION: // POV hats act as direction pad case SDL_JOYHATMOTION: // POV hats act as direction pad