include map include string std map int std string get_keys std map int

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
#include <map>
#include <string>
std::map<int,std::string> get_keys()
{
std::map<int,std::string> keys;
keys[1]="Esc";
keys[2]="1";
keys[3]="2";
keys[4]="3";
keys[5]="4";
keys[6]="5";
keys[7]="6";
keys[8]="7";
keys[9]="8";
keys[10]="9";
keys[11]="0";
keys[12]="-";
keys[13]="=";
keys[14]="BackSpace";
keys[15]="Tab";
keys[16]="Q";
keys[17]="W";
keys[18]="E";
keys[19]="R";
keys[20]="T";
keys[21]="Y";
keys[22]="U";
keys[23]="I";
keys[24]="O";
keys[25]="P";
keys[26]="[";
keys[27]="]";
keys[28]="Enter";
keys[29]="LCtrl";
keys[30]="A";
keys[31]="S";
keys[32]="D";
keys[33]="F";
keys[34]="G";
keys[35]="H";
keys[36]="J";
keys[37]="K";
keys[38]="L";
keys[39]=";";
keys[40]="'";
keys[41]="`";
keys[42]="LShift";
keys[43]="\\";
keys[44]="Z";
keys[45]="X";
keys[46]="C";
keys[47]="V";
keys[48]="B";
keys[49]="N";
keys[50]="M";
keys[51]=",";
keys[52]=".";
keys[53]="/";
keys[54]="RShift";
keys[55]="*";
keys[56]="LAlt";
keys[57]="Space";
keys[58]="CapsLock";
keys[59]="F1";
keys[60]="F2";
keys[61]="F3";
keys[62]="F4";
keys[63]="F5";
keys[64]="F6";
keys[65]="F7";
keys[66]="F8";
keys[67]="F9";
keys[68]="F10";
keys[69]="NumLock";
keys[70]="ScrollLock";
keys[71]="NUM7";
keys[72]="NUM8";
keys[73]="NUM9";
keys[74]="NUM-";
keys[75]="NUM4";
keys[76]="NUM5";
keys[77]="NUM6";
keys[78]="NUM+";
keys[79]="NUM1";
keys[80]="NUM2";
keys[81]="NUM3";
keys[82]="NUM0";
keys[83]="NumDel";
keys[87]="F11";
keys[88]="F12";
keys[96]="REnter";
keys[97]="RCtrl";
keys[98]="/";
keys[99]="PrintScreen";
keys[100]="RAlt";
keys[102]="Home";
keys[103]="Up";
keys[104]="PgUp";
keys[105]="Left";
keys[106]="Right";
keys[107]="End";
keys[108]="Down";
keys[109]="PgDn";
keys[110]="Insert";
keys[111]="Del";
keys[119]="Pause";
return keys;
}