1 #ifndef CLIB_KEYMAP_PROTOS_H
    2 #define CLIB_KEYMAP_PROTOS_H
    3 
    4 /*
    5 	keymap.library C prototypes
    6 
    7 	Copyright © 2002 The MorphOS Development Team, All Rights Reserved.
    8 */
    9 
   10 #ifndef DEVICES_INPUTEVENT_H
   11 # include <devices/inputevent.h>
   12 #endif
   13 
   14 #ifndef DEVICES_KEYMAP_H
   15 # include <devices/keymap.h>
   16 #endif
   17 
   18 
   19 #ifdef __cplusplus
   20 extern "C" {
   21 #endif /* __cplusplus */
   22 
   23 VOID SetKeyMapDefault( CONST struct KeyMap *keyMap );
   24 struct KeyMap *AskKeyMapDefault( VOID );
   25 WORD MapRawKey( CONST struct InputEvent *event, STRPTR buffer, LONG length, CONST struct KeyMap *keyMap );
   26 LONG MapANSI( CONST_STRPTR string, LONG count, STRPTR buffer, LONG length, CONST struct KeyMap *keyMap );
   27 WORD MapRawKeyUCS4( CONST struct InputEvent *event, WSTRPTR buffer, LONG length, CONST struct KeyMap *keyMap );
   28 LONG MapUCS4( CONST_WSTRPTR string, LONG count, STRPTR buffer, LONG length, CONST struct KeyMap *keyMap );
   29 char ToANSI( WCHAR ucs4char, CONST struct KeyMap *keyMap );
   30 WCHAR ToUCS4( char asciichar, CONST struct KeyMap *keyMap );
   31 CONST_STRPTR GetKeyMapCodepage( CONST struct KeyMap *keyMap );
   32 #ifdef __cplusplus
   33 }
   34 #endif /* __cplusplus */
   35 
   36 
   37 #endif /* CLIB_KEYMAP_PROTOS_H */