Revert "x11: get x1/x2 button state in GetGlobalMouseState"

This reverts commit 3fcc2cb500.

Button4 and Button5 are for the scrollwheel, not the extended buttons.
I don't know of a way to query the state of the extended buttons using X11.
main
Sam Lantinga 2022-05-19 00:31:20 -07:00
parent 47f1cb550d
commit 57130b75a9
1 changed files with 0 additions and 2 deletions

View File

@ -406,8 +406,6 @@ X11_GetGlobalMouseState(int *x, int *y)
buttons |= (mask & Button1Mask) ? SDL_BUTTON_LMASK : 0; buttons |= (mask & Button1Mask) ? SDL_BUTTON_LMASK : 0;
buttons |= (mask & Button2Mask) ? SDL_BUTTON_MMASK : 0; buttons |= (mask & Button2Mask) ? SDL_BUTTON_MMASK : 0;
buttons |= (mask & Button3Mask) ? SDL_BUTTON_RMASK : 0; buttons |= (mask & Button3Mask) ? SDL_BUTTON_RMASK : 0;
buttons |= (mask & Button4Mask) ? SDL_BUTTON_X1MASK : 0;
buttons |= (mask & Button5Mask) ? SDL_BUTTON_X2MASK : 0;
/* SDL_DisplayData->x,y point to screen origin, and adding them to mouse coordinates relative to root window doesn't do the right thing /* SDL_DisplayData->x,y point to screen origin, and adding them to mouse coordinates relative to root window doesn't do the right thing
* (observed on dual monitor setup with primary display being the rightmost one - mouse was offset to the right). * (observed on dual monitor setup with primary display being the rightmost one - mouse was offset to the right).
* *