X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FInput.c;h=2b8f7bedfa2132f6b86bd491542d48f73d58cfe5;hb=fe656a41b406b06d9dc5b93d01191d52b1da3b4d;hp=24438057c0810497bd8b7105d3515075bfff8506;hpb=5ba7f2d9a3f07f342afdf215a3307d5487cb6d43;p=rocksndiamonds.git diff --git a/src/game_sp/Input.c b/src/game_sp/Input.c index 24438057..2b8f7bed 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 @@ -148,7 +149,7 @@ int subProcessKeyboardInput() // Call DKeyboard.Unacquire return subProcessKeyboardInput; -NoKeyboardAccessEH: + // NoKeyboardAccessEH: Debug.Print("! Keyboard access"); return subProcessKeyboardInput;