mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 21:09:11 +02:00
rtl-console: fixed TKeyEvent to TKeyRecord mapping on big endian systems
git-svn-id: trunk@28550 -
This commit is contained in:
parent
dffdde7d53
commit
bf35dae486
@ -20,8 +20,13 @@ const
|
|||||||
type
|
type
|
||||||
TKeyEvent = Cardinal;
|
TKeyEvent = Cardinal;
|
||||||
TKeyRecord = packed record
|
TKeyRecord = packed record
|
||||||
|
{$IFDEF ENDIAN_LITTLE}
|
||||||
KeyCode : Word;
|
KeyCode : Word;
|
||||||
ShiftState, Flags : Byte;
|
ShiftState, Flags : Byte;
|
||||||
|
{$ELSE}
|
||||||
|
Flags, ShiftState : Byte;
|
||||||
|
KeyCode : Word;
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ The structure of a TKeyEvent follows in LSB-MSB order:
|
{ The structure of a TKeyEvent follows in LSB-MSB order:
|
||||||
|
Loading…
Reference in New Issue
Block a user