home *** CD-ROM | disk | FTP | other *** search
-
- {
- ConsoleUtils.i
- This file defines the console.devices functions, as well as
- two functions used to initialize and close the device. Note that
- there is another include file which defines KeyPressed, ReadKey,
- AttachConsole, etc. I kept these two files seperate because I
- think they would rarely be used together.
- The source for the first two functions, which are written in
- Pascal, are in RunTime/Extras. The source for the second two,
- which are just stubs, is in RunTime/System.
- }
-
- {$I "Include/ExecIO.i"}
- {$I "Include/InputEvent.i"}
-
- var
- ConsoleBase : Address;
- ConsoleRequest : IOStdReq;
-
- Procedure OpenConsoleDevice;
- External;
-
- Procedure CloseConsoleDevice;
- External;
-
- Function RawKeyConvert(event : InputEventPtr; Buffer : String;
- Length : Integer; KeyMap : Address) : Integer;
- External;
-
- Function CDInputHandler(events : InputEventPtr; con : Address) : InputEventPtr;
- External;
-