[xiph-commits] r18880 - trunk/squishyball

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Wed Mar 13 00:48:01 PDT 2013


Author: xiphmont
Date: 2013-03-13 00:48:01 -0700 (Wed, 13 Mar 2013)
New Revision: 18880

Modified:
   trunk/squishyball/main.c
   trunk/squishyball/tty.c
Log:
Add some additional keybindings for MAC OS X, and add them to usage/help


Modified: trunk/squishyball/main.c
===================================================================
--- trunk/squishyball/main.c	2013-03-13 07:19:43 UTC (rev 18879)
+++ trunk/squishyball/main.c	2013-03-13 07:48:01 UTC (rev 18880)
@@ -133,7 +133,8 @@
           "     A B     : Choose A or B sample for A/B[/X] trial result.\n"
           "   1 2 3...  : Switch between first, second, etc samples.\n"
           "    ! @ #    : Choose sample 1, 2, or 3 for X/X/Y trial result.\n"
-          " <del> <ins> : Undo/redo last trial result selection.\n"
+          "   + -, or   : Undo/redo last trial result selection.\n"
+          " <ins> <del>\n"
           "   <enter>   : Choose current sample for this trial\n"
           "    <- ->    : Seek back/forward two seconds, +shift for 10 seconds\n"
           "  <up/down>  : Select sample from list (casual mode)\n"
@@ -141,8 +142,8 @@
           "  <backspc>  : Reset playback to start point\n"
           "      e      : set end playback point to current playback time.\n"
           "      E      : reset end playback time to end of sample\n"
-          "      f      : Toggle through beep-flip/mark-flip/seamless-flip modes.\n"
-          "      r      : Toggle through restart-after/restart-every/no-restart.\n"
+          "      f      : Cycle through beep-flip/mark-flip/seamless-flip modes.\n"
+          "      r      : Cycle through restart-after/restart-every/no-restart.\n"
           "      s      : set start playback point to current playback time.\n"
           "      S      : reset start playback time to 0:00:00.00\n"
           "      ?      : Print this keymap\n"
@@ -786,6 +787,7 @@
           seek_to+=pcm[0]->rate*bpf*10;
           do_seek=1;
           break;
+        case 0x7f: /* backspace may generate DEL */
         case KEY_BACKSPACE:
           seek_to=start_pos-current_pos;
           do_seek=1;
@@ -819,10 +821,12 @@
         case '?':
           panel_toggle_keymap();
           break;
+        case '+':
         case 331:
           if(tests_cursor<tests_total && !running_score)
             tests_cursor++;
           break;
+        case '-':
         case 330:
           if(tests_cursor>0 && !running_score){
             tests_cursor--;

Modified: trunk/squishyball/tty.c
===================================================================
--- trunk/squishyball/tty.c	2013-03-13 07:19:43 UTC (rev 18879)
+++ trunk/squishyball/tty.c	2013-03-13 07:48:01 UTC (rev 18880)
@@ -717,7 +717,7 @@
     min_putstrb("        <enter> ");
     min_putstr (": Choose current ");
     if(!p_g){
-      min_putstrb("      <ins/del> ");
+      min_putstrb("  + - <ins/del> ");
       min_putstr (": Undo/redo trial");
     }
     min_mvcur(x,o++);



More information about the commits mailing list