
3. Key input by application program
(1) Functions
The application program can send an arbitrary character or string to the key
input buffer of the MDI-KEY by calling following functions.
aux_mdi_putc() Output one character.
aux_mdi_write() Output a string.
These character and string are received regardless of any operation to the
screen or MDI panel.
(2) Arguments
The application program sends a pair of the function flag and the key code to
be output to the above functions. The format of the function flag is same as
the MDI key matrix. Any arbitrary value is allowed to be specified for key
code. Also any key code which isn't registered in the standard key matrix. (It
is possible to send a key code as a message from any auxiliary task to the main
task.)
(3) Relation to the MDI panel
The key input from the application program is handled more preferentially
than one from the MDI panel. Therefore, when any key is input from both the
application and the MDI panel simultaneously, the former is given to the
software. Usually, inhibit the key input from the MDI panel during inputting
key from the application program using following functions.
aux_mdi_control( MDI_LOK_PNL ) Disable key input from the MDI panel.
aux_mdi_control( MDI_ULK_PNL ) Enable key input from the MDI panel.
Only RESET key is accepted during being inhibited key input from the MDI
panel.