mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 22:49:37 +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
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user