X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fengine%2Fe_input.pas;h=269a1d17c85c81e277f6ffeaaca4f20a3cba179f;hp=2a2f435de2c5d5c8ce606e87d9788292995dd766;hb=2a785940b8e595cffcc9e9d652c2ae9248c989ee;hpb=f80b377fa46b7c9d9aa46bbe5f02f384ced3ff1f diff --git a/src/engine/e_input.pas b/src/engine/e_input.pas index 2a2f435..269a1d1 100644 --- a/src/engine/e_input.pas +++ b/src/engine/e_input.pas @@ -192,14 +192,14 @@ function PollKeyboard(): Boolean; var Keys: PByte; NKeys: Integer; - i: NativeInt; + i: NativeUInt; begin Result := False; Keys := SDL_GetKeyboardState(@NKeys); if (Keys = nil) or (NKeys < 1) then Exit; for i := 0 to NKeys do - KeyBuffer[i] := ((PByte(NativeInt(Keys) + i)^) <> 0); + KeyBuffer[i] := ((PByte(NativeUInt(Keys) + i)^) <> 0); for i := NKeys to High(KeyBuffer) do KeyBuffer[i] := False; end;