Update of /cvsroot/super-tux/supertux/lib/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8100/lib/gui
Modified Files:
menu.cpp
Log Message:
applied netsrot's patch
Index: menu.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/lib/gui/menu.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- menu.cpp 18 Aug 2004 10:38:10 -0000 1.12
+++ menu.cpp 8 Sep 2004 17:32:32 -0000 1.13
@@ -846,6 +846,13 @@
joystick_timer.stop();
}
break;
+ case SDL_JOYHATMOTION:
+ if(event.jhat.value & SDL_HAT_UP) {
+ menuaction = MENU_ACTION_UP;
+ } else if(event.jhat.value & SDL_HAT_DOWN) {
+ menuaction = MENU_ACTION_DOWN;
+ }
+ break;
case SDL_JOYBUTTONDOWN:
if (item.size() > 0 && item[active_item].kind == MN_CONTROLFIELD_JS)
{
|