(C) 1998 AROS - The Amiga Research OS


NAME
#include <>
#include <devices/inputevent.h>
#include <devices/keymap.h>
#include <proto/keymap.h>
#include <proto/timer.h>

BOOL InvertKeyMap (ansiCode , event , km )

LOCATION
In CxBase at offset 29

SYNOPSIS
ULONG ansiCode
struct InputEvent * event
struct KeyMap * km

FUNCTION
Translate a given ANSI character code to an InputEvent. The InputEvent pointed to by 'event' is initialized to match the 'ansiCode'. The translation is done using the keymap 'km'. If 'km' is NULL, the default system keymap is used.

INPUTS
ansiCode
the ANSI character code to be translated
event
the inputevent that will contain the translation
km
keymap used for the translation (if 'km' is NULL the system default keymap is used).

RESULT
TRUE if the translation was successful, otherwise FALSE.

EXAMPLE

SEE ALSO
cx_lib/ InvertString()

NOTES

BUGS
Only one-deep dead keys are handled, for instance <alt f>e. It doesn't look up the high key map (keycodes with scan codes greater than 0x40).

INTERNALS

HISTORY
18.07.1999 SDuvan
Finally -- commodities.library