[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.11,1.12
Max Horn
fingolfin at users.sourceforge.net
Wed Oct 16 13:33:05 CEST 2002
Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory usw-pr-cvs1:/tmp/cvs-serv2225/backends/sdl
Modified Files:
sdl-common.cpp
Log Message:
patch #620627: mouse wheel support for NewGui
Index: sdl-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- sdl-common.cpp 14 Oct 2002 11:02:26 -0000 1.11
+++ sdl-common.cpp 16 Oct 2002 20:32:10 -0000 1.12
@@ -588,6 +588,12 @@
event->event_code = EVENT_LBUTTONDOWN;
else if (ev.button.button == SDL_BUTTON_RIGHT)
event->event_code = EVENT_RBUTTONDOWN;
+#if defined(SDL_BUTTON_WHEELUP) && defined(SDL_BUTTON_WHEELDOWN)
+ else if (ev.button.button == SDL_BUTTON_WHEELUP)
+ event->event_code = EVENT_WHEELUP;
+ else if (ev.button.button == SDL_BUTTON_WHEELDOWN)
+ event->event_code = EVENT_WHEELDOWN;
+#endif
else
break;
km.x = event->mouse.x = ev.motion.x;
More information about the Scummvm-git-logs
mailing list