X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fengine%2Fe_input.pas;h=deded67e211fbcfeeaf961aad76d4160ce3a928e;hb=7292fe409145dfcbb2776e34bb64d56e32985b9d;hp=2a2f435de2c5d5c8ce606e87d9788292995dd766;hpb=a25182b0259235ece5d4a2cdceafd0b2cdfc582b;p=d2df-sdl.git diff --git a/src/engine/e_input.pas b/src/engine/e_input.pas index 2a2f435..deded67 100644 --- a/src/engine/e_input.pas +++ b/src/engine/e_input.pas @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . *) -{$MODE DELPHI} +{$INCLUDE e_amodes.inc} unit e_input; interface @@ -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;