rtl-console: fixed TKeyEvent to TKeyRecord mapping on big endian systems

git-svn-id: trunk@28550 -
This commit is contained in:
Károly Balogh 2014-08-31 13:17:53 +00:00
parent dffdde7d53
commit bf35dae486

View File

@ -20,8 +20,13 @@ const
type
TKeyEvent = Cardinal;
TKeyRecord = packed record
{$IFDEF ENDIAN_LITTLE}
KeyCode : Word;
ShiftState, Flags : Byte;
{$ELSE}
Flags, ShiftState : Byte;
KeyCode : Word;
{$ENDIF}
end;
{ The structure of a TKeyEvent follows in LSB-MSB order: