User Interface Messages


 
Contents:
 
Function/s Message function type
 Messages from applications to the user interface
 00000000 to 000000FF   Keyboard
 00010000 to 0001FFFF   Video
 00020000 to 0002FFFF   Mouse
 00030000 to 0003FFFF   Sound
 00040000 to 0004FFFF   Joystick
 Messages from device support code to the user interface
 00100000 to 0010FFFF   Keyboard
 00110000 to 0011FFFF   Video
 00120000 to 0012FFFF   Mouse
 00130000 to 0013FFFF   Sound
 00140000 to 0014FFFF   Joystick
 Messages from user interface to applications
 00104000    Key pressed
 FFFFF000   Screen just became active
 FFFFF100   Screen no longer active
 FFFFFF02   Connected to user interface
 Messages from user interface to device support code
 00012080 to 00017F80   Update video screen
 General messages from applications to user interface
 FFFFFE00   Disconnect from user interface
 FFFFFF01   Connect to user interface
 



Accessing the user interface

The user interface is accessed via messaging. Any messages returned as a response by the user interface (to applications or drivers) are described with the message they are a response to. If anyone wants demonstration code for using the user interface, please ask.
 



Messages from user interface to applications


00104000 - Key pressed
Data1    Keypress packet
Data2    -
If you elect to use the keyboard you'll be sent these.



FFFFF000 - Screen just became active
Data1    Connection ID
Data2    Time (tickHigh)


FFFFF100 - Screen no longer active
Data1    Connection ID
Data2    Time (tickHigh)

FFFFFF02 - Connected to user interface
Data1    Connection ID
Data2    -
This is a response to function 0xFFFFFF01.
 



Messages from user interface to device support code


00012080 to 00017F80 - Update video screen
Data1    Size of screen buffer
Data2    Address of buffer
Function number in this range indicate different video modes.



General messages from applications

FFFFFE00 - Disconnect from user interface

Data1    Connection ID
Data2    -
Used to close a connection.


FFFFFF01 - Connect to user interface

Data1    Device flags
Data2    -
Used to open a connection to the user interface.

Device flags:
  Bit    Meaning when '1'
   0      Use keyboard
   1      Use video
   2      Use mouse
   3      Use sound
   4      Use joystick

Response message (FFFFFF02)

Data1    Connection ID
Data2    -

Home  Index
Copyright 1998, Brendan Trotter