ReactOS  0.4.12-dev-14-gd0c8636
tkeymap.cpp
Go to the documentation of this file.
1 //Telnet Win32 : an ANSI telnet client.
3 //Copyright (C) 1998-2000 Paul Brannan
4 //Copyright (C) 1998 I.Ioannou
5 //Copyright (C) 1997 Brad Johnson
6 //
7 //This program is free software; you can redistribute it and/or
8 //modify it under the terms of the GNU General Public License
9 //as published by the Free Software Foundation; either version 2
10 //of the License, or (at your option) any later version.
11 //
12 //This program is distributed in the hope that it will be useful,
13 //but WITHOUT ANY WARRANTY; without even the implied warranty of
14 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 //GNU General Public License for more details.
16 //
17 //You should have received a copy of the GNU General Public License
18 //along with this program; if not, write to the Free Software
19 //Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 //
21 //I.Ioannou
22 //roryt@hol.gr
23 //
25 
27 // Class TkeyMap - Key Mappings //
28 // - kept in an array container //
29 // originally part of KeyTrans.cpp //
31 
32 #include "precomp.h"
33 
35  key(NULL,state,code) {};
36 
38  key = tk;
39 };
40 KeyMap::KeyMap(TKeyDef&tk, string& t):map(0,0,sizeof(TKeyDef)), orig(t){
41  key = tk;
42 };
43 
44 int KeyMap::operator==(const KeyMap & t) const{
45  return key == t.key;
46 };
47 
49  key = t.key;
50  map = t.map;
51  orig = t.orig;
52  return (*this);
53 };
54 
55 #ifndef __BORLANDC__
56 bool operator<(const KeyMap &t1, const KeyMap &t2) {
57  return t1.key < t2.key;
58 }
59 #endif
60 
62 };
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
friend bool operator<(const KeyMap &t1, const KeyMap &t2)
Definition: tkeymap.cpp:56
TKeyDef key
Definition: tkeymap.h:20
GLdouble GLdouble t
Definition: gl.h:2047
~KeyMap()
Definition: tkeymap.cpp:61
smooth NULL
Definition: ftsmooth.c:416
KeyMap()
Definition: tkeymap.h:23
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: _map.h:44
int operator==(const KeyMap &t) const
Definition: tkeymap.cpp:44
static int state
Definition: maze.c:121
Definition: tkeymap.h:17
KeyMap & operator=(const KeyMap &t)
Definition: tkeymap.cpp:48
keyArray map
Definition: tkeymap.h:18
string orig
Definition: tkeymap.h:19
Definition: path.c:42