home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fd2inline-1.0-bin.lha / include / inline / keymap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-12  |  842 b   |  29 lines

  1. #ifndef _INLINE_KEYMAP_H
  2. #define _INLINE_KEYMAP_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef KEYMAP_BASE_NAME
  9. #define KEYMAP_BASE_NAME KeymapBase
  10. #endif
  11.  
  12. #define AskKeyMapDefault() \
  13.     LP0(0x24, struct KeyMap *, AskKeyMapDefault, \
  14.     , KEYMAP_BASE_NAME)
  15.  
  16. #define MapANSI(string, count, buffer, length, keyMap) \
  17.     LP5(0x30, LONG, MapANSI, STRPTR, string, a0, long, count, d0, STRPTR, buffer, a1, long, length, d1, struct KeyMap *, keyMap, a2, \
  18.     , KEYMAP_BASE_NAME)
  19.  
  20. #define MapRawKey(event, buffer, length, keyMap) \
  21.     LP4(0x2a, WORD, MapRawKey, struct InputEvent *, event, a0, STRPTR, buffer, a1, long, length, d1, struct KeyMap *, keyMap, a2, \
  22.     , KEYMAP_BASE_NAME)
  23.  
  24. #define SetKeyMapDefault(keyMap) \
  25.     LP1NR(0x1e, SetKeyMapDefault, struct KeyMap *, keyMap, a0, \
  26.     , KEYMAP_BASE_NAME)
  27.  
  28. #endif /* _INLINE_KEYMAP_H */
  29.