Commit 744ad325 authored by Steven Fuller's avatar Steven Fuller

swapped mouse buttons to match DOS original.

parent 76cf9570
......@@ -398,7 +398,26 @@ void IN_GetMouseDelta(int *dx, int *dy)
byte IN_MouseButtons()
{
return SDL_GetMouseState(NULL, NULL);
Uint8 state;
byte retr;
state = SDL_GetMouseState(NULL, NULL);
retr = 0;
if (state & SDL_BUTTON(SDL_BUTTON_LEFT)) {
retr |= 1;
}
if (state & SDL_BUTTON(SDL_BUTTON_RIGHT)) {
retr |= 2;
}
if (state & SDL_BUTTON(SDL_BUTTON_MIDDLE)) {
retr |= 4;
}
return retr;
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment