5 #include <classlib\arrays.h>
14 typedef TArrayAsVector
<TKeyDef
> keyArray
;
17 // representation of keymap
19 keyArray map
; // keymap
20 string orig
; // original string from .cfg file
21 TKeyDef key
; // 'switch to' key
23 KeyMap(DWORD state
, DWORD code
);
24 KeyMap(): map(0,0,sizeof(TKeyDef
)){};
26 KeyMap(TKeyDef
&tk
, string
&);
27 KeyMap(const string
&t
): map(0,0,sizeof(TKeyDef
)), orig(t
) {};
28 int operator==(const KeyMap
& t
) const;
29 KeyMap
& operator = (const KeyMap
& t
);
32 // The STL needs this (Paul Brannan 5/25/98)
33 friend bool operator<(const KeyMap
&t1
, const KeyMap
&t2
);