~ubuntu-branches/ubuntu/jaunty/openarena/jaunty

« back to all changes in this revision

Viewing changes to code/q3_ui/ui_qmenu.c

  • Committer: Bazaar Package Importer
  • Author(s): Bruno "Fuddl" Kleinert, Bruno "Fuddl" Kleinert
  • Date: 2008-04-24 14:33:54 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080424143354-0cuxsalv98ajw2js
Tags: 0.7.6-1
[ Bruno "Fuddl" Kleinert ]
* New upstream release
* Freshen 10_fix_build_and_binary_on_alpha.dpatch to apply to latest
  upstream sources
* Remove 10-fix_menudef.h_includes.dpatch which pulled in a missing header
  file. The header is now included in the upstream tarball.
* Remove debian/watch, because upstream places its new releases too often to
  different download locations
* Updated debian/copyright to reflect the download location
* Expand copyright years in debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
466
466
                case K_JOY3:
467
467
                case K_JOY4:
468
468
                case K_ENTER:
469
 
                case K_KP_ENTER:
470
 
                case K_KP_LEFTARROW:
471
469
                case K_LEFTARROW:
472
 
                case K_KP_RIGHTARROW:
473
470
                case K_RIGHTARROW:
474
471
                        rb->curvalue = !rb->curvalue;
475
472
                        if ( rb->generic.callback )
587
584
                                sound = 0;
588
585
                        break;
589
586
 
590
 
                case K_KP_LEFTARROW:
591
587
                case K_LEFTARROW:
592
588
                        if (s->curvalue > s->minvalue)
593
589
                        {
598
594
                                sound = menu_buzz_sound;
599
595
                        break;                  
600
596
 
601
 
                case K_KP_RIGHTARROW:
602
597
                case K_RIGHTARROW:
603
598
                        if (s->curvalue < s->maxvalue)
604
599
                        {
806
801
                        sound = menu_move_sound;
807
802
                        break;
808
803
                
809
 
                case K_KP_LEFTARROW:
810
804
                case K_LEFTARROW:
811
805
                        if (s->curvalue > 0)
812
806
                        {
817
811
                                sound = menu_buzz_sound;
818
812
                        break;
819
813
 
820
 
                case K_KP_RIGHTARROW:
821
814
                case K_RIGHTARROW:
822
815
                        if (s->curvalue < s->numitems-1)
823
816
                        {
967
960
                        }
968
961
                        break;
969
962
 
970
 
                case K_KP_HOME:
971
963
                case K_HOME:
972
964
                        l->oldvalue = l->curvalue;
973
965
                        l->curvalue = 0;
980
972
                        }
981
973
                        return (menu_buzz_sound);
982
974
 
983
 
                case K_KP_END:
984
975
                case K_END:
985
976
                        l->oldvalue = l->curvalue;
986
977
                        l->curvalue = l->numitems-1;
1002
993
                        return (menu_buzz_sound);
1003
994
 
1004
995
                case K_PGUP:
1005
 
                case K_KP_PGUP:
1006
996
                        if( l->columns > 1 ) {
1007
997
                                return menu_null_sound;
1008
998
                        }
1025
1015
                        return (menu_buzz_sound);
1026
1016
 
1027
1017
                case K_PGDN:
1028
 
                case K_KP_PGDN:
1029
1018
                        if( l->columns > 1 ) {
1030
1019
                                return menu_null_sound;
1031
1020
                        }
1047
1036
                        }
1048
1037
                        return (menu_buzz_sound);
1049
1038
 
1050
 
                case K_KP_UPARROW:
1051
1039
                case K_UPARROW:
1052
1040
                        if( l->curvalue == 0 ) {
1053
1041
                                return menu_buzz_sound;
1071
1059
 
1072
1060
                        return (menu_move_sound);
1073
1061
 
1074
 
                case K_KP_DOWNARROW:
1075
1062
                case K_DOWNARROW:
1076
1063
                        if( l->curvalue == l->numitems - 1 ) {
1077
1064
                                return menu_buzz_sound;
1095
1082
 
1096
1083
                        return menu_move_sound;
1097
1084
 
1098
 
                case K_KP_LEFTARROW:
1099
1085
                case K_LEFTARROW:
1100
1086
                        if( l->columns == 1 ) {
1101
1087
                                return menu_null_sound;
1118
1104
 
1119
1105
                        return menu_move_sound;
1120
1106
 
1121
 
                case K_KP_RIGHTARROW:
1122
1107
                case K_RIGHTARROW:
1123
1108
                        if( l->columns == 1 ) {
1124
1109
                                return menu_null_sound;
1643
1628
                        trap_Cmd_ExecuteText(EXEC_APPEND, "screenshot\n");
1644
1629
                        break;
1645
1630
#endif
1646
 
                case K_KP_UPARROW:
1647
1631
                case K_UPARROW:
1648
1632
                        cursor_prev    = m->cursor;
1649
1633
                        m->cursor_prev = m->cursor;
1656
1640
                        break;
1657
1641
 
1658
1642
                case K_TAB:
1659
 
                case K_KP_DOWNARROW:
1660
1643
                case K_DOWNARROW:
1661
1644
                        cursor_prev    = m->cursor;
1662
1645
                        m->cursor_prev = m->cursor;