ReactOS 0.4.15-dev-8393-g61b7fb9
tkeymap.cpp
Go to the documentation of this file.
1
2//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};
40KeyMap::KeyMap(TKeyDef&tk, string& t):map(0,0,sizeof(TKeyDef)), orig(t){
41 key = tk;
42};
43
44int 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__
56bool operator<(const KeyMap &t1, const KeyMap &t2) {
57 return t1.key < t2.key;
58}
59#endif
60
62};
static int state
Definition: maze.c:121
Definition: _map.h:48
map()
Definition: _map.h:99
#define NULL
Definition: types.h:112
unsigned long DWORD
Definition: ntddk_ex.h:95
GLdouble GLdouble t
Definition: gl.h:2047
Definition: tkeymap.h:17
KeyMap & operator=(const KeyMap &t)
Definition: tkeymap.cpp:48
~KeyMap()
Definition: tkeymap.cpp:61
int operator==(const KeyMap &t) const
Definition: tkeymap.cpp:44
string orig
Definition: tkeymap.h:19
KeyMap()
Definition: tkeymap.h:23
TKeyDef key
Definition: tkeymap.h:20
Definition: inflate.c:139
Definition: copy.c:22
bool operator<(const KeyMap &t1, const KeyMap &t2)
Definition: tkeymap.cpp:56
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList