Previous 15994 Revisions Next

r2555 Tuesday 6th May, 2008 at 01:25:08 UTC by Nathan Woods
File manager fix. (bug #1600)
[docs]messnew.txt
[src/mess]filemngr.c

src/mess/filemngr.c
r2554r2555
426426
427427
428428
429#define UI_SHIFT_PRESSED      (input_code_pressed(KEYCODE_LSHIFT) || input_code_pressed(KEYCODE_RSHIFT))
430#define UI_CONTROL_PRESSED      (input_code_pressed(KEYCODE_LCONTROL) || input_code_pressed(KEYCODE_RCONTROL))
429#define UI_SHIFT_PRESSED               (input_code_pressed(KEYCODE_LSHIFT) || input_code_pressed(KEYCODE_RSHIFT))
430
431431/* and mask to get bits */
432432#define SEL_BITS_MASK         (~SEL_MASK)
433433
r2554r2555
516516
517517      visible = 0;
518518
519      if (input_ui_pressed_repeat(IPT_UI_DOWN, 8))
519      /* down advances by one item */
520      if (input_ui_pressed_repeat(IPT_UI_DOWN, 6))
520521      {
521         if (UI_CONTROL_PRESSED)
522         {
523            sel = total - 1;
524         }
525         else
526         if (UI_SHIFT_PRESSED)
527         {
528            sel = (sel + visible - 1);
529            sel = MIN(sel,total);
530         }
531         else
532         {
533            sel++;
534            sel = MIN(sel,total);
535         }
522         sel++;
523         sel = MIN(sel,total);
536524      }
537525
538      if (input_ui_pressed_repeat(IPT_UI_UP, 8))
526      /* end goes to the last */
527      if (input_ui_pressed_repeat(IPT_UI_END, 6))
539528      {
540         if (UI_CONTROL_PRESSED)
541         {
542            sel = 1;
543         }
544         if (UI_SHIFT_PRESSED)
545         {
546            sel = (sel - visible + 1);
547            sel = MAX(0,sel);
548         }
549         else
550         {
551            sel--;
552            sel = MAX(0,sel);
553         }
529         sel = total - 1;
554530      }
555531
532      /* page down advances by visible_items */
533      if (input_ui_pressed_repeat(IPT_UI_PAGE_DOWN, 6))
534      {
535         sel = (sel + visible - 1);
536         sel = MIN(sel,total);
537      }
538
539      /* up backs up by one item */
540      if (input_ui_pressed_repeat(IPT_UI_DOWN, 6))
541      {
542         sel--;
543         sel = MAX(0,sel);
544      }
545
546      /* home goes to the start */
547      if (input_ui_pressed_repeat(IPT_UI_HOME, 6))
548      {
549         sel = 1;
550      }
551
552      /* page up backs up by visible_items */
553      if (input_ui_pressed_repeat(IPT_UI_PAGE_UP, 6))
554      {
555         sel = (sel - visible + 1);
556         sel = MAX(0,sel);
557      }
558
556559      if (input_ui_pressed(IPT_UI_SELECT))
557560      {
558561         if (sel < SEL_MASK)
docs/messnew.txt
r2554r2555
9191
9292- Shift+ScrollLock now triggers a paste command.  [Nate Woods]
9393
94- File manager fix.  (bug #1600) [Nate Woods]
95
9496- [Windows] Made -nonewui default.  Depending on the reaction this spawns,
9597  the newui may be removed in the future.  [Nate Woods]
9698

Previous 15994 Revisions Next


© 1998-2018 The MESS Team