diff --git a/src/engine/e_input.pas b/src/engine/e_input.pas
index d4081ee5615075eaa89c26fb80962c47e82e1dda..021c3ddadf72452b8c4b11358877cf0da23662e5 100644 (file)
--- a/src/engine/e_input.pas
+++ b/src/engine/e_input.pas
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*)
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*)
-{$MODE DELPHI}
+{$INCLUDE ../shared/a_modes.inc}
unit e_input;
interface
unit e_input;
interface
var
Keys: PByte;
NKeys: Integer;
var
Keys: PByte;
NKeys: Integer;
- i: Cardinal;
+ i: NativeUInt;
begin
Result := False;
Keys := SDL_GetKeyboardState(@NKeys);
if (Keys = nil) or (NKeys < 1) then
Exit;
for i := 0 to NKeys do
begin
Result := False;
Keys := SDL_GetKeyboardState(@NKeys);
if (Keys = nil) or (NKeys < 1) then
Exit;
for i := 0 to NKeys do
- KeyBuffer[i] := ((PByte(Cardinal(Keys) + i)^) <> 0);
+ KeyBuffer[i] := ((PByte(NativeUInt(Keys) + i)^) <> 0);
for i := NKeys to High(KeyBuffer) do
KeyBuffer[i] := False;
end;
for i := NKeys to High(KeyBuffer) do
KeyBuffer[i] := False;
end;