wwww
Revision | 7fffafe71a9d84c527b697b6c556861857fc1eae (tree) |
---|---|
Time | 2016-08-10 21:19:02 |
Author | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
wwww
@@ -31,8 +31,7 @@ main(int argc, char *argv[]) | ||
31 | 31 | player_t player[MaxPlayers]; |
32 | 32 | //extern struct inconfig inpu; |
33 | 33 | testkeyin=1; |
34 | - testcontrolnoisy=0; | |
35 | - testctrltype=0; | |
34 | + testcontrolnoisy=1; | |
36 | 35 | IN_Startup(); |
37 | 36 | IN_Default(0,&player,ctrl_Joystick1); |
38 | 37 | //while(!IN_KeyDown(sc_Escape)) |
@@ -107,5 +106,4 @@ main(int argc, char *argv[]) | ||
107 | 106 | printf("version %s\n", VERSION); |
108 | 107 | printf("testkeyin=%u\n", testkeyin); |
109 | 108 | printf("testcontrolnoisy=%u\n", testcontrolnoisy); |
110 | - printf("testctrltype=%u\n", testctrltype); | |
111 | 109 | } |
@@ -38,7 +38,7 @@ | ||
38 | 38 | |
39 | 39 | #include "src/lib/16_in.h" |
40 | 40 | |
41 | -boolean testkeyin=0,testcontrolnoisy=0,testctrltype=0; | |
41 | +boolean testkeyin=0,testcontrolnoisy=0; | |
42 | 42 | |
43 | 43 | /* |
44 | 44 | ============================================================================= |
@@ -673,7 +673,6 @@ void | ||
673 | 673 | IN_Default(boolean gotit,player_t *player,ControlType nt) |
674 | 674 | { |
675 | 675 | int i; |
676 | - if(testctrltype==0) | |
677 | 676 | if |
678 | 677 | ( |
679 | 678 | (!gotit) |
@@ -843,7 +842,6 @@ register KeyboardDef *def; | ||
843 | 842 | else |
844 | 843 | { |
845 | 844 | #endif |
846 | - if(testctrltype>0) printf("player[pn].Controls=%c\n", player[pn].Controls); | |
847 | 845 | switch (type = player[pn].Controls) |
848 | 846 | { |
849 | 847 | case ctrl_Keyboard1: |
@@ -969,9 +967,8 @@ register KeyboardDef *def; | ||
969 | 967 | } |
970 | 968 | } |
971 | 969 | #endif |
972 | -//#ifdef TESTCONTROLNOISY | |
973 | 970 | if(testcontrolnoisy > 0) |
974 | -if((inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->left] || inpu.Keyboard[def->right]) || player[pn].q>1) | |
971 | +if(player[pn].d/*(inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->left] || inpu.Keyboard[def->right])*/ || player[pn].q>1) | |
975 | 972 | { |
976 | 973 | printf("q=%d ", player[pn].q); |
977 | 974 | printf("cpee=%c ", dirchar(conpee)); |
@@ -979,9 +976,10 @@ if((inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->lef | ||
979 | 976 | //printf("(my)=%d ", my); |
980 | 977 | //printf("[%d] ", mx+my); |
981 | 978 | printf("pdir=%c d=%c dir=%c ", dirchar(player[pn].pdir), dirchar(player[pn].d), dirchar(player[pn].info.dir)); |
982 | - printf("%c%d %c%d %c%d %c%d\n", dirchar(0), inpu.Keyboard[def->up], dirchar(4), inpu.Keyboard[def->down], dirchar(1), inpu.Keyboard[def->left], dirchar(3), inpu.Keyboard[def->right]); | |
979 | + if(realdelta) printf("dx=%u dy=%u mx=%u my=%u", player[pn].info.x, player[pn].info.y, player[pn].info.xaxis, player[pn].info.yaxis); | |
980 | + else if(!realdelta) printf("%c%d %c%d %c%d %c%d", dirchar(0), inpu.Keyboard[def->up], dirchar(4), inpu.Keyboard[def->down], dirchar(1), inpu.Keyboard[def->left], dirchar(3), inpu.Keyboard[def->right]); | |
981 | + printf("\n"); | |
983 | 982 | } |
984 | -//#endif | |
985 | 983 | } |
986 | 984 | |
987 | 985 | /////////////////////////////////////////////////////////////////////////// |
@@ -43,7 +43,7 @@ | ||
43 | 43 | //#define TESTCONTROLNOISY |
44 | 44 | #endif |
45 | 45 | |
46 | -extern boolean testkeyin,testcontrolnoisy,testctrltype; | |
46 | +extern boolean testkeyin,testcontrolnoisy; | |
47 | 47 | |
48 | 48 | //if else for gfxtesting and direction |
49 | 49 | //player[pn].d == 2 || |
@@ -1 +1 @@ | ||
1 | -Subproject commit d1c85c569d11b8f014858982d5744b5139c52cc1 | |
1 | +Subproject commit 6021415cc75e7922d45b12935f56348b064d8a7f |