• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

wwww


Commit MetaInfo

Revision7fffafe71a9d84c527b697b6c556861857fc1eae (tree)
Time2016-08-10 21:19:02
Authorsparky4 <sparky4@cock...>
Commitersparky4

Log Message

wwww

Change Summary

Incremental Difference

--- a/src/inputest.c
+++ b/src/inputest.c
@@ -31,8 +31,7 @@ main(int argc, char *argv[])
3131 player_t player[MaxPlayers];
3232 //extern struct inconfig inpu;
3333 testkeyin=1;
34- testcontrolnoisy=0;
35- testctrltype=0;
34+ testcontrolnoisy=1;
3635 IN_Startup();
3736 IN_Default(0,&player,ctrl_Joystick1);
3837 //while(!IN_KeyDown(sc_Escape))
@@ -107,5 +106,4 @@ main(int argc, char *argv[])
107106 printf("version %s\n", VERSION);
108107 printf("testkeyin=%u\n", testkeyin);
109108 printf("testcontrolnoisy=%u\n", testcontrolnoisy);
110- printf("testctrltype=%u\n", testctrltype);
111109 }
--- a/src/lib/16_in.c
+++ b/src/lib/16_in.c
@@ -38,7 +38,7 @@
3838
3939 #include "src/lib/16_in.h"
4040
41-boolean testkeyin=0,testcontrolnoisy=0,testctrltype=0;
41+boolean testkeyin=0,testcontrolnoisy=0;
4242
4343 /*
4444 =============================================================================
@@ -673,7 +673,6 @@ void
673673 IN_Default(boolean gotit,player_t *player,ControlType nt)
674674 {
675675 int i;
676- if(testctrltype==0)
677676 if
678677 (
679678 (!gotit)
@@ -843,7 +842,6 @@ register KeyboardDef *def;
843842 else
844843 {
845844 #endif
846- if(testctrltype>0) printf("player[pn].Controls=%c\n", player[pn].Controls);
847845 switch (type = player[pn].Controls)
848846 {
849847 case ctrl_Keyboard1:
@@ -969,9 +967,8 @@ register KeyboardDef *def;
969967 }
970968 }
971969 #endif
972-//#ifdef TESTCONTROLNOISY
973970 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)
975972 {
976973 printf("q=%d ", player[pn].q);
977974 printf("cpee=%c ", dirchar(conpee));
@@ -979,9 +976,10 @@ if((inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->lef
979976 //printf("(my)=%d ", my);
980977 //printf("[%d] ", mx+my);
981978 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");
983982 }
984-//#endif
985983 }
986984
987985 ///////////////////////////////////////////////////////////////////////////
--- a/src/lib/16_in.h
+++ b/src/lib/16_in.h
@@ -43,7 +43,7 @@
4343 //#define TESTCONTROLNOISY
4444 #endif
4545
46-extern boolean testkeyin,testcontrolnoisy,testctrltype;
46+extern boolean testkeyin,testcontrolnoisy;
4747
4848 //if else for gfxtesting and direction
4949 //player[pn].d == 2 ||
--- a/src/lib/jsmn
+++ b/src/lib/jsmn
@@ -1 +1 @@
1-Subproject commit d1c85c569d11b8f014858982d5744b5139c52cc1
1+Subproject commit 6021415cc75e7922d45b12935f56348b064d8a7f