Implement pausing
authorAlberto Mardegan <mardy@users.sourceforge.net>
Fri, 8 Jul 2011 10:14:45 +0000 (13:14 +0300)
committerAlberto Mardegan <mardy@users.sourceforge.net>
Fri, 8 Jul 2011 10:15:15 +0000 (13:15 +0300)
ball/st_play.c

index 59077bb..ad09915 100644 (file)
@@ -426,6 +426,8 @@ static void maemo_play_loop_click(int b, int d)
     }
     else
     {
+        if (button_pressed && !dragging)
+            goto_state(&st_pause);
         VIEWR_SET_R(0);
         VIEWR_SET_L(0);
     }