Patch for Debian_5.0
OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=16
This commit is contained in:
parent
02f41d4730
commit
f09707e76b
34
0ad-cs8833.patch
Normal file
34
0ad-cs8833.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
Index: source/ps/KeyName.h
|
||||||
|
===================================================================
|
||||||
|
--- source/ps/KeyName.h (revision 8832)
|
||||||
|
+++ source/ps/KeyName.h (revision 8833)
|
||||||
|
@@ -34,8 +34,13 @@
|
||||||
|
MOUSE_MIDDLE = SDLK_LAST + SDL_BUTTON_MIDDLE,
|
||||||
|
MOUSE_WHEELUP = SDLK_LAST + SDL_BUTTON_WHEELUP,
|
||||||
|
MOUSE_WHEELDOWN = SDLK_LAST + SDL_BUTTON_WHEELDOWN,
|
||||||
|
+#if SDL_VERSION_ATLEAST(1, 2, 13)
|
||||||
|
MOUSE_X1 = SDLK_LAST + SDL_BUTTON_X1,
|
||||||
|
MOUSE_X2 = SDLK_LAST + SDL_BUTTON_X2,
|
||||||
|
+#else
|
||||||
|
+ MOUSE_X1 = SDLK_LAST + SDL_BUTTON_WHEELDOWN + 1,
|
||||||
|
+ MOUSE_X2 = SDLK_LAST + SDL_BUTTON_WHEELDOWN + 2,
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
// 'Keycodes' for the unified modifier keys
|
||||||
|
UNIFIED_SHIFT,
|
||||||
|
Index: source/ps/Hotkey.cpp
|
||||||
|
===================================================================
|
||||||
|
--- source/ps/Hotkey.cpp (revision 8832)
|
||||||
|
+++ source/ps/Hotkey.cpp (revision 8833)
|
||||||
|
@@ -178,7 +178,11 @@
|
||||||
|
break;
|
||||||
|
case SDL_MOUSEBUTTONDOWN:
|
||||||
|
case SDL_MOUSEBUTTONUP:
|
||||||
|
+#if SDL_VERSION_ATLEAST(1, 2, 13)
|
||||||
|
if ((int)ev->ev.button.button <= SDL_BUTTON_X2)
|
||||||
|
+#else
|
||||||
|
+ if ((int)ev->ev.button.button <= SDL_BUTTON_WHEELDOWN)
|
||||||
|
+#endif
|
||||||
|
{
|
||||||
|
keycode = SDLK_LAST + (int)ev->ev.button.button;
|
||||||
|
break;
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e41f53f08a3423d502ef9d8dbb77c5518bfbc1c6bd5c7312e3ba99aa9c599817
|
|
||||||
size 5911327
|
|
1
debian.series
Normal file
1
debian.series
Normal file
@ -0,0 +1 @@
|
|||||||
|
0ad-cs8833.patch -p0
|
Loading…
Reference in New Issue
Block a user