Changeset fa38804 in buchla-68k for ram/wheel.c
- Timestamp:
- 07/14/2017 04:18:35 PM (7 years ago)
- Branches:
- master
- Children:
- ace9ee7
- Parents:
- 1efe224
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/wheel.c
r1efe224 rfa38804 30 30 #define M_NORESP 3 /* No response from mouse */ 31 31 #define M_RESPNG 4 /* Bad response from mouse */ 32 33 /*34 35 */36 32 37 33 #if DEBUGMS … … 76 72 int16_t tkhdvr = TKCDVR; /* text cursor horizontal movement threshold */ 77 73 int16_t tkvdvr = TKCDVR; /* text cursor vertical movement threshold */ 78 79 /*80 81 */82 74 83 75 int16_t msxgdv[13] = { /* mouse x cursor divisor table */ … … 117 109 #include "swrtab.h" /* long swrtab[128]; */ 118 110 119 /*120 121 */122 123 111 /* 124 112 ============================================================================= … … 143 131 } 144 132 145 /*146 147 */148 149 133 /* 150 134 ============================================================================= … … 196 180 } 197 181 198 /*199 200 */201 202 182 /* 203 183 ============================================================================= … … 240 220 } 241 221 242 /*243 244 */245 246 222 /* 247 223 ============================================================================= … … 309 285 return(FAILURE); 310 286 } 311 312 313 /*314 315 */316 287 317 288 /* … … 377 348 } 378 349 379 /*380 381 */382 383 350 msxmov = str[1] | ((str[0] & 0x0003) << 6); 384 351 … … 421 388 else 422 389 msyres = 0; 423 424 /*425 426 */427 390 428 391 if ((cxrate EQ 0) AND (cyrate EQ 0)) /* we're done if nothing changed */ … … 449 412 } 450 413 451 /*452 453 */454 455 414 /* 456 415 ============================================================================= … … 483 442 } 484 443 } 485 486 /*487 488 */489 444 490 445 #if DEBUGTF … … 538 493 #endif 539 494 540 /*541 542 */543 544 495 /* 545 496 ============================================================================= … … 567 518 for (i = 0; i < NSWFIFO; i++) 568 519 swfifo[i] = aval; 569 /* 570 571 */ 520 572 521 } else { /* finger moved */ 573 522 … … 621 570 } 622 571 } 623 /* 624 625 */ 572 626 573 } else { /* FINGER UP */ 627 574 … … 660 607 } 661 608 } 662 663 /*664 665 */666 609 667 610 /* … … 702 645 cxrate = 0; /* X inactive */ 703 646 704 /* 705 706 */ 647 707 648 if ((tyndx = tyfiin - tkback) < 0) /* get fifo index */ 708 649 tyndx += NTKFIFO; /* adjust index */ … … 740 681 } 741 682 742 /*743 744 */745 746 683 /* 747 684 ============================================================================= … … 781 718 #endif 782 719 } 783 784 /*785 786 */787 720 788 721 /* … … 820 753 txydn(); /* both active now */ 821 754 822 /* 823 824 */ 755 825 756 } else { /* finger moved ? */ 826 757 … … 865 796 } 866 797 } 867 /* 868 869 */ 798 870 799 } else { /* AXIS GOING INACTIVE */ 871 800 … … 877 806 } 878 807 } 879 880 /*881 882 */883 808 884 809 /* … … 914 839 if (txflag AND (NOT tkboth)) 915 840 txydn(); /* both active now */ 916 /* 917 918 */ 841 919 842 } else { /* finger moved ? */ 920 843 … … 959 882 } 960 883 } 961 /* 962 963 */ 884 964 885 } else { /* AXIS GOING INACTIVE */ 965 886 … … 971 892 } 972 893 } 973 974 /*975 976 */977 894 978 895 /* … … 1023 940 } 1024 941 } 1025 /* 1026 1027 */ 942 1028 943 /* PROCESS MOUSE INPUTS */ 1029 944 … … 1061 976 cmfix(); /* ... adjust the rates */ 1062 977 1063 /* 1064 1065 */ 978 1066 979 if ((cxrate NE 0) AND (msctrl OR (chwait LE 0))) /* UPDATE X VALUES */ 1067 980 (*cx_upd)(); … … 1109 1022 } 1110 1023 } 1111 /* 1112 1113 */ 1024 1114 1025 /* CHECK THE MOUSE MOTION TIMER */ 1115 1026 … … 1141 1052 } 1142 1053 1143 /* 1144 1145 */ 1054 1146 1055 /* UPDATE THE CURSOR TIMERS */ 1147 1056 … … 1166 1075 setipl(oldi); 1167 1076 } 1168 /* 1169 1170 */ 1077 1171 1078 /* PROCESS THE SCROLL WHEEL */ 1172 1079 … … 1214 1121 } 1215 1122 } 1216 /* 1217 1218 */ 1123 1219 1124 if (swflag OR swctrl) { /* RESET THE SCROLL TIMER */ 1220 1125 … … 1225 1130 } 1226 1131 } 1227 1228 /*1229 1230 */1231 1132 1232 1133 /*
Note:
See TracChangeset
for help on using the changeset viewer.