X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FInput.c;h=42ad1201ae2c8d4e93d35c27545d02b8a032bd70;hb=055b582fdcaeddfa6dbb240eb591ec61f37e21d3;hp=24438057c0810497bd8b7105d3515075bfff8506;hpb=5ba7f2d9a3f07f342afdf215a3307d5487cb6d43;p=rocksndiamonds.git diff --git a/src/game_sp/Input.c b/src/game_sp/Input.c index 24438057..42ad1201 100644 --- a/src/game_sp/Input.c +++ b/src/game_sp/Input.c @@ -4,7 +4,8 @@ #include "Input.h" -static char *VB_Name = "modInput"; +// static char *VB_Name = "modInput"; + // --- Option Explicit boolean KeyState[255 + 1]; @@ -40,7 +41,7 @@ int subProcessKeyboardInput() { int subProcessKeyboardInput; - int LastKey; + static int LastKey = 0; // On Error GoTo NoKeyboardAccessEH // Call DKeyboard.Acquire @@ -125,6 +126,10 @@ int subProcessKeyboardInput() } else { +#if 1 + printf("::: Input.c: subProcessKeyboardInput(): kill murphy\n"); +#endif + KillMurphyFlag = 1; // ExplodeFieldSP MurphyPosIndex // LeadOutCounter = &H20 @@ -148,7 +153,7 @@ int subProcessKeyboardInput() // Call DKeyboard.Unacquire return subProcessKeyboardInput; -NoKeyboardAccessEH: + // NoKeyboardAccessEH: Debug.Print("! Keyboard access"); return subProcessKeyboardInput;