Added missing X1/X2 button support
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403156
This commit is contained in:
parent
e7d72614c3
commit
6b4db38d91
1 changed files with 10 additions and 0 deletions
|
@ -271,6 +271,16 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
} else if (flags & RI_MOUSE_BUTTON_3_UP) {
|
} else if (flags & RI_MOUSE_BUTTON_3_UP) {
|
||||||
SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_RIGHT);
|
SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_RIGHT);
|
||||||
}
|
}
|
||||||
|
if (flags & RI_MOUSE_BUTTON_4_DOWN) {
|
||||||
|
SDL_SendMouseButton(index, SDL_PRESSED, SDL_BUTTON_X1);
|
||||||
|
} else if (flags & RI_MOUSE_BUTTON_4_UP) {
|
||||||
|
SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X1);
|
||||||
|
}
|
||||||
|
if (flags & RI_MOUSE_BUTTON_5_DOWN) {
|
||||||
|
SDL_SendMouseButton(index, SDL_PRESSED, SDL_BUTTON_X2);
|
||||||
|
} else if (flags & RI_MOUSE_BUTTON_5_UP) {
|
||||||
|
SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X2);
|
||||||
|
}
|
||||||
if (flags & RI_MOUSE_WHEEL) {
|
if (flags & RI_MOUSE_WHEEL) {
|
||||||
if (raw->data.mouse.usButtonData != 0) {
|
if (raw->data.mouse.usButtonData != 0) {
|
||||||
SDL_SendMouseWheel(index, 0,
|
SDL_SendMouseWheel(index, 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue