• 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

Revisionc9568e2ba705c5cf44d5403c114b3ef1a6df5b95 (tree)
Time2016-08-11 02:16:26
Authorsparky4 <sparky4@cock...>
Commitersparky4

Log Message

testing input oops ; i mean this output ok so i am abojut to ineject it soon

Change Summary

Incremental Difference

--- a/src/lib/16_in.c
+++ b/src/lib/16_in.c
@@ -863,25 +863,25 @@ register KeyboardDef *def;
863863 }else if(!inpu.Keyboard[def->up] && !inpu.Keyboard[def->down]){
864864 if((inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]))
865865 mx = motion_Left;
866- if((inpu.Keyboard[def->right] && !inpu.Keyboard[def->left]))// || player[pn].pdir != 1)
866+ if((inpu.Keyboard[def->right] && !inpu.Keyboard[def->left]))
867867 mx = motion_Right;
868868 }else{ //2 keys pressed
869869 switch (player[pn].pdir)
870870 {
871871 case 0:
872872 case 4:
873- if((inpu.Keyboard[def->left] && !inpu.Keyboard[def->right])){ dir = DirTable[1]; mx = motion_Left; }
874- else if((inpu.Keyboard[def->right] && !inpu.Keyboard[def->left])){ dir = DirTable[3]; mx = motion_Right; }
873+ if((inpu.Keyboard[def->left] && !inpu.Keyboard[def->right])){ dir = DirTable[1]; }//mx = motion_Left; }
874+ else if((inpu.Keyboard[def->right] && !inpu.Keyboard[def->left])){ dir = DirTable[3]; }//mx = motion_Right; }
875875 break;
876876 case 1:
877877 case 3:
878- if((inpu.Keyboard[def->up] && !inpu.Keyboard[def->down])){ dir = DirTable[0]; my = motion_Up; }
879- else if((inpu.Keyboard[def->down] && !inpu.Keyboard[def->up])){ dir = DirTable[4]; my = motion_Down; }
878+ if((inpu.Keyboard[def->up] && !inpu.Keyboard[def->down])){ dir = DirTable[0]; }//my = motion_Up; }
879+ else if((inpu.Keyboard[def->down] && !inpu.Keyboard[def->up])){ dir = DirTable[4]; }//my = motion_Down; }
880880 break;
881881 default:
882882 break;
883883 }
884- if(testcontrolnoisy > 0){ printf("dir=%c ", dirchar(dir)); printf("pdir=%c ", dirchar(player[pn].pdir)); }
884+ //if(testcontrolnoisy > 0){ printf("dir=%c ", dirchar(dir)); printf("pdir=%c ", dirchar(player[pn].pdir)); }
885885 }
886886 }
887887 //input from player
@@ -963,7 +963,7 @@ register KeyboardDef *def;
963963 }
964964 #endif
965965 if(testcontrolnoisy > 0)
966-if(player[pn].d /*(inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->left] || inpu.Keyboard[def->right])*/ || player[pn].q>1)
966+if(player[pn].info.dir!=2/*(inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->left] || inpu.Keyboard[def->right])*/ || player[pn].q>1)
967967 {
968968 //printf("b1=%u b2=%u b3=%u b4=%u ", player[pn].info.button0, player[pn].info.button1, player[pn].info.button2, player[pn].info.button3);
969969 //printf("q=%d ", player[pn].q);