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