Index: pacbox.c
===================================================================
RCS file: /cvsroot/rockbox/apps/plugins/pacbox/pacbox.c,v
retrieving revision 1.7
diff -p -u -d -r1.7 pacbox.c
--- pacbox.c	16 Mar 2006 23:21:47 -0000	1.7
+++ pacbox.c	17 Mar 2006 00:25:15 -0000
@@ -294,6 +294,20 @@ static int gameProc( void )
         if (x == 1) { return 1; }
         start_time += *rb->current_tick-end_time;
     }
+//#ifdef HAVE_WHEEL_STATUS
+    int wheel = rb->wheel_status(); //-1 means the wheel isnt touched
+    if (wheel >= 0 && wheel < 96) {
+    wheel = (wheel+12-24)%96; //rotate the wheel a bit
+        if (wheel < 24)
+            status |= PACMAN_UP;
+        else if (wheel < 48)
+            status |= PACMAN_RIGHT;
+        else if (wheel < 72)
+            status |= PACMAN_DOWN;
+        else if (wheel < 96)
+            status |= PACMAN_LEFT;
+    }
+//#endif
 
     setDeviceMode( Joy1_Left, (status & PACMAN_LEFT) ? DeviceOn : DeviceOff);
     setDeviceMode( Joy1_Right, (status & PACMAN_RIGHT) ? DeviceOn : DeviceOff);

