X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fengine%2Fe_input.pas;h=072dccb44cd6d592f369191e12a8b5988c6b14e9;hb=31d174a428ef1235e1708b0738804b47e006cf5c;hp=6e208d7ecd1920bf6901feb5534897f8452bf3be;hpb=d46592a9a1b2cb649e26f30e54622708334b5061;p=d2df-sdl.git diff --git a/src/engine/e_input.pas b/src/engine/e_input.pas index 6e208d7..072dccb 100644 --- a/src/engine/e_input.pas +++ b/src/engine/e_input.pas @@ -207,12 +207,15 @@ end; function PollKeyboard(): Boolean; +{ var Keys: PByte; NKeys: Integer; i: NativeUInt; +} begin Result := False; + { Keys := SDL_GetKeyboardState(@NKeys); if (Keys = nil) or (NKeys < 1) then Exit; for i := 0 to NKeys do @@ -220,6 +223,7 @@ begin if ((PByte(NativeUInt(Keys) + i)^) <> 0) then KeyBuffer[i] := false; end; for i := NKeys to High(KeyBuffer) do KeyBuffer[i] := False; + } end; function PollJoysticks(): Boolean;