home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / Guide.lzx / Guide / Device / Keymap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-11  |  3.4 KB  |  113 lines

  1. @DATABASE "Device/Keymap.h"
  2. @MASTER   "Work2:AD/IInc/Device/Keymap.h"
  3. @REMARK   This file was created by ADtoHT 2.0 on 11-Mär-97  13:33:46
  4. @REMARK   Do not edit
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "Device/Keymap.h"
  8. @TOC "__pOS_Dev.guide/MAIN"
  9.  
  10. @{"Device/Keymap.h" LINK File}
  11.  
  12.  
  13. @{b}Structures@{ub}
  14.  
  15. @{"pOS_KeyMap" LINK "Device/Keymap.h/File" 18}  @{"pOS_KeyMapDeadHeader" LINK "Device/Keymap.h/File" 49}  @{"pOS_KeyMapNode" LINK "Device/Keymap.h/File" 62}  @{"pOS_KeyMapStrHeader" LINK "Device/Keymap.h/File" 41}
  16.  
  17. @ENDNODE
  18. @NODE File "Device/Keymap.h"
  19. #ifndef __INC_POS_DEVICE_KEYMAP_H
  20. #define __INC_POS_DEVICE_KEYMAP_H
  21. /*******************************************************************
  22.  Includes Release 24
  23.  (C) Copyright 1995-1997 proDAD
  24.      All Rights Reserved
  25.  
  26.  $AUT Holger Burkarth
  27.  $DAT >>Keymap.h<<   19 Nov 1996    11:22:05 - (C) ProDAD
  28. *******************************************************************/
  29. #ifndef __INC_POS_PEXEC_LIST_H
  30. #include <@{"pExec/List.h" LINK "pExec/List.h/File"}>
  31. #endif
  32.  
  33.  
  34. /*----------------------------------
  35. -----------------------------------*/
  36. struct pOS_KeyMap
  37. {
  38.   @{"UBYTE" LINK "pExec/Types.h/File" 95} *km_LoKeyMapTypes;  /* (enum pOS_KeyMapTypes) */
  39.   @{"ULONG" LINK "pExec/Types.h/File" 91} *km_LoKeyMap;
  40.   @{"UBYTE" LINK "pExec/Types.h/File" 95} *km_LoCapsable;
  41.   @{"UBYTE" LINK "pExec/Types.h/File" 95} *km_LoRepeatable;
  42.  
  43.   @{"UBYTE" LINK "pExec/Types.h/File" 95} *km_HiKeyMapTypes;  /* (enum pOS_KeyMapTypes) */
  44.   @{"ULONG" LINK "pExec/Types.h/File" 91} *km_HiKeyMap;
  45.   @{"UBYTE" LINK "pExec/Types.h/File" 95} *km_HiCapsable;
  46.   @{"UBYTE" LINK "pExec/Types.h/File" 95} *km_HiRepeatable;
  47.  
  48.   @{"UWORD" LINK "pExec/Types.h/File" 93}  km_Reserved;
  49.   @{"SWORD" LINK "pExec/Types.h/File" 92}  km_LoMapOffset;    /* normal =0x00 */
  50.   @{"SWORD" LINK "pExec/Types.h/File" 92}  km_HiMapOffset;    /* normal =0x40 */
  51.   @{"UWORD" LINK "pExec/Types.h/File" 93}  km_LoMapLen;       /* normal =0x40 */
  52.   @{"UWORD" LINK "pExec/Types.h/File" 93}  km_HiMapLen;       /* normal =0x28 */
  53. };
  54.  
  55.  
  56.  
  57. /*----------------------------------
  58. -----------------------------------*/
  59. struct pOS_KeyMapStrHeader
  60. {
  61.   @{"UBYTE" LINK "pExec/Types.h/File" 95}  kmsh_StrLen;    /* Len of string */
  62.   @{"SBYTE" LINK "pExec/Types.h/File" 94}  kmsh_Offset;    /* Offset to string */
  63. };
  64.  
  65. /*----------------------------------
  66. -----------------------------------*/
  67. struct pOS_KeyMapDeadHeader
  68. {
  69.   @{"UBYTE" LINK "pExec/Types.h/File" 95}  kmdh_Type;      /* 0 | DPF_MOD | DPF_DEAD  */
  70.   union
  71.     @{"UBYTE" LINK "pExec/Types.h/File" 95}  kmdh_Char;    /* Type==0  */
  72.     @{"SBYTE" LINK "pExec/Types.h/File" 94}  kmdh_ModData; /* Type==DPF_MOD  */
  73.   } kmdh_U;
  74. };
  75.  
  76.  
  77.  
  78. /*----------------------------------
  79. -----------------------------------*/
  80. struct pOS_KeyMapNode
  81. {
  82.   @{"struct pOS_ExNode" LINK "pExec/List.h/File" 37} kn_Node;    /* ln_Name => name of keymap */
  83.   @{"struct pOS_KeyMap" LINK File 18} kn_KeyMap;
  84. };
  85.  
  86.  
  87.  
  88. enum pOS_KeyMapTypes
  89. {
  90.   KC_NOQUAL=      0x00,
  91.   KC_VANILLA=     0x07,  /* note that SHIFT+ALT+CTRL is VANILLA */
  92.  
  93.   KCF_SHIFT=      0x01,
  94.   KCF_ALT=        0x02,
  95.   KCF_CONTROL=    0x04,
  96.   KCF_DOWNUP=     0x08,
  97.  
  98.   KCF_DEAD=       0x20,  /*   use dead prefix bytes */
  99.   KCF_STRING=     0x40,
  100.   KCF_NOP=        0x80,
  101.  
  102.  
  103. /* Dead Prefix Bytes */
  104.   DPF_MOD=        0x01,
  105.   DPF_DEAD=       0x08,
  106.  
  107.   DP_2DINDEXMASK= 0x0f,  /* mask for index for 1st of two dead keys */
  108.   DP_2DFACSHIFT=  0x04,  /* shift for factor for 1st of two dead keys */
  109. };
  110.  
  111. #endif
  112. @ENDNODE
  113.